Merge branch 'bug-fix'

This commit is contained in:
RockYang
2025-09-07 15:19:02 +08:00
3 changed files with 12 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -13,11 +13,7 @@
<div class="flex justify-center text-sm">
<a href="https://beian.miit.gov.cn" target="_blank">ICP备案{{ icp }}</a>
<span>|</span>
<img
src="https://inews.gtimg.com/newsapp_bt/0/0613150938895_706/0"
class="w-4 h-4 mx-1"
alt="beian"
/>
<img :src="gaBeianImg" class="w-4 h-4 mx-1" alt="beian" />
<a
:href="`http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${getCodeNum(
gaBeian
@@ -47,6 +43,7 @@ const props = defineProps({
default: '#ffffff',
},
})
const gaBeianImg = ref('/images/ga_beian.png')
// 获取系统配置
getSystemInfo()
@@ -75,9 +72,13 @@ getLicenseInfo()
// 获取公安备案号
const getCodeNum = (code) => {
// 提取数字
const num = code.match(/\d+/)
if (num) {
return num[0]
try {
const num = code.match(/\d+/)
if (num) {
return num[0]
}
} catch (e) {
return ''
}
return ''
}

View File

@@ -214,18 +214,18 @@ const items = [
title: '基础配置',
},
{
icon: 'config',
icon: 'power',
index: '/admin/config/power',
title: '算力配置',
},
{
icon: 'config',
icon: 'menu',
index: '/admin/config/menu',
title: '菜单配置',
},
{
icon: 'config',
icon: 'license',
index: '/admin/config/license',
title: '授权激活',
},