style(页脚): 版权和备案信息只在首页显示,其他页面不再占地方
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
365ce0a7b4
commit
9b4c4a73f1
1 file changed
+2
-5
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<n-flex
|
||||
v-if="!hiddenICP"
|
||||
v-if="route.name === 'home'"
|
||||
justify="center"
|
||||
align="center"
|
||||
:size="isMobile ? 4 : 'medium'"
|
||||
@@ -24,10 +24,7 @@ import { zonedYear } from "utils/functions"
|
||||
|
||||
const route = useRoute()
|
||||
const { isMobile } = useBreakpoints()
|
||||
// 题目页两栏顶满整屏,三种入口都不放页脚(原来漏了题单入口,页脚压在编辑器底下)
|
||||
const hiddenICP = computed(() =>
|
||||
["problem", "contest problem", "problemset problem"].includes(route.name as string),
|
||||
)
|
||||
// 版权与备案只在首页出现:其余页面都是干活的地方,页脚只占地方
|
||||
|
||||
// 版权年份也走东八区:站内不留任何一处按浏览器时区取时间部件的代码,
|
||||
// 免得下一个人照着抄
|
||||
|
||||
Reference in new issue
Block a user