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

View File

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