add public security.

This commit is contained in:
2023-12-11 09:00:02 +08:00
parent ab33c5753e
commit 04dcdb9b53
2 changed files with 23 additions and 1 deletions

BIN
public/备案图标.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -7,8 +7,17 @@ function goICP() {
window.open("https://beian.miit.gov.cn", "_balnk")
}
function goPublicSecurity() {
window.open(
"https://beian.mps.gov.cn/#/query/webSearch?code=33100402331786",
"_balnk",
)
}
const route = useRoute()
const hiddenICP = computed(() => ["problem", "contest problem"].includes(<string>route.name))
const hiddenICP = computed(() =>
["problem", "contest problem"].includes(<string>route.name),
)
</script>
<template>
@@ -23,6 +32,12 @@ const hiddenICP = computed(() => ["problem", "contest problem"].includes(<string
<Signup />
<n-space v-if="!hiddenICP" justify="center" class="beian">
<n-button text @click="goICP">浙ICP备2023044109号</n-button>
<div>
<img class="psIcon" src="/备案图标.png" alt="备案图标" />
<n-button text @click="goPublicSecurity">
浙公网安备33100402331786
</n-button>
</div>
</n-space>
</n-layout>
</template>
@@ -39,4 +54,11 @@ const hiddenICP = computed(() => ["problem", "contest problem"].includes(<string
.beian > a {
text-decoration: none;
}
.psIcon {
width: 14px;
height: 14px;
transform: translateY(2px);
margin-right: 2px;
}
</style>