fix UI
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-02-28 20:38:22 +08:00
parent f47fe5c477
commit 40b4237098

View File

@@ -1,17 +1,30 @@
<template>
<n-space v-if="!hiddenICP" justify="center" class="beian">
<div>
&copy; 2022 - 2026 判题狗 保留所有权利 采用
<n-button text @click="goCC">CC BY-NC 4.0</n-button> 许可协议
</div>
<n-flex
v-if="!hiddenICP"
justify="center"
align="center"
:vertical="isMobile"
class="beian"
>
<n-flex justify="center" align="center" :vertical="isMobile" size="small">
<n-text>&copy; 2022 - 2026 判题狗 保留所有权利</n-text>
<n-flex justify="center" align="center" size="small">
<n-text>采用</n-text>
<n-button text @click="goCC">CC BY-NC 4.0</n-button>
<n-text>许可协议</n-text>
</n-flex>
</n-flex>
<n-button text @click="goICP">浙ICP备2023044109号</n-button>
<n-button text @click="goPublicSecurity">
浙公网安备33100402331786号
</n-button>
</n-space>
</n-flex>
</template>
<script lang="ts" setup>
import { useBreakpoints } from "shared/composables/breakpoints"
const route = useRoute()
const { isMobile } = useBreakpoints()
const hiddenICP = computed(() =>
["problem", "contest problem"].includes(<string>route.name),
)