update
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-07-26 06:51:46 -06:00
parent 63b02ec221
commit e99f9d5458

View File

@@ -10,13 +10,14 @@
> >
<n-flex justify="center" align="center" :size="isMobile ? 4 : 'small'"> <n-flex justify="center" align="center" :size="isMobile ? 4 : 'small'">
<n-text>{{ copyrightText }}</n-text> <n-text>{{ copyrightText }}</n-text>
<!-- 移动端隐藏 CC 链接腾出空间让备案号挤进一行 --> <n-button text @click="goCC">CC BY-NC 4.0</n-button>
<n-button v-if="!isMobile" text @click="goCC">CC BY-NC 4.0</n-button>
</n-flex> </n-flex>
<template v-if="!isMobile">
<n-button text @click="goICP">浙ICP备2023044109号-1</n-button> <n-button text @click="goICP">浙ICP备2023044109号-1</n-button>
<n-button text @click="goPublicSecurity"> <n-button text @click="goPublicSecurity">
浙公网安备33100402331786号 浙公网安备33100402331786号
</n-button> </n-button>
</template>
</n-flex> </n-flex>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
@@ -28,13 +29,9 @@ const hiddenICP = computed(() =>
["problem", "contest problem"].includes(route.name as string), ["problem", "contest problem"].includes(route.name as string),
) )
// 移动端精简版权文案,配合小号字体挤进一行;结束年份取当前年份
const currentYear = new Date().getFullYear() const currentYear = new Date().getFullYear()
const copyrightText = computed(() => const copyrightText = `© 2022 - ${currentYear} 判题狗 保留所有权利`
isMobile.value
? `© ${currentYear} 判题狗`
: `© 2022 - ${currentYear} 判题狗 保留所有权利`,
)
function goICP() { function goICP() {
window.open("https://beian.miit.gov.cn", "_blank") window.open("https://beian.miit.gov.cn", "_blank")
@@ -59,7 +56,7 @@ function goPublicSecurity() {
margin: 12px 0; margin: 12px 0;
} }
/* 移动端:单行 + 小号字体,超宽时容器内部横向滚动,不撑破页面 */
.beian--mobile { .beian--mobile {
font-size: 12px; font-size: 12px;
max-width: 100%; max-width: 100%;