perf: 支持设置网安备案号

This commit is contained in:
xiaojunnuo
2025-05-10 21:31:32 +08:00
parent 0a147d2db7
commit d18e431e2f
8 changed files with 41 additions and 26 deletions
@@ -15,8 +15,13 @@
<template v-if="sysPublic.icpNo">
<span>
<a href="https://beian.miit.gov.cn/" target="_blank">{{ sysPublic.icpNo }}</a>
<a-divider type="vertical" />
</span>
</template>
<span v-if="sysPublic.mpsNo">
<a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank">{{ sysPublic.mpsNo }}</a>
</span>
</div>
<div class="ml-5">v{{ version }}</div>
</div>
@@ -26,7 +31,7 @@ import { computed, onMounted, ref } from "vue";
import { useSettingStore } from "/@/store/settings";
defineOptions({
name: "PageFooter"
name: "PageFooter",
});
const version = ref(import.meta.env.VITE_APP_VERSION);
@@ -20,8 +20,8 @@ const menus = computed(() => [
router.push("/certd/mine/user-profile");
},
icon: "fa-solid:book",
text: "账号信息"
}
text: "账号信息",
},
]);
const avatar = computed(() => {
@@ -42,7 +42,7 @@ const siteInfo = computed(() => {
return settingStore.siteInfo;
});
onErrorCaptured((e) => {
onErrorCaptured(e => {
console.error("ErrorCaptured:", e);
// notification.error({ message: e.message });
//阻止错误向上传递
@@ -133,7 +133,7 @@ const asideCollapsed = ref(false);
function asideCollapsedToggle() {
asideCollapsed.value = !asideCollapsed.value;
}
onErrorCaptured((e) => {
onErrorCaptured(e => {
console.error("ErrorCaptured:", e);
// notification.error({ message: e.message });
//阻止错误向上传递
@@ -31,6 +31,10 @@
<a-divider type="vertical" />
<a href="https://beian.miit.gov.cn/" target="_blank">{{ sysPublic.icpNo }}</a>
</span>
<span v-if="sysPublic.mpsNo">
<a-divider type="vertical" />
<a href="http://www.beian.gov.cn/portal/registerSystemInfo" target="_blank">{{ sysPublic.mpsNo }}</a>
</span>
</div>
</div>
</div>