refactor:优化系统配置与版权显示

This commit is contained in:
秋帆
2024-06-11 21:24:53 +08:00
parent b1485c238f
commit d7e29e238e
8 changed files with 127 additions and 63 deletions

View File

@@ -69,6 +69,7 @@ const storeSetup = () => {
siteConfig.SITE_LOGO = resMap.get('SITE_LOGO')
siteConfig.SITE_TITLE = resMap.get('SITE_TITLE')
siteConfig.SITE_COPYRIGHT = resMap.get('SITE_COPYRIGHT')
siteConfig.SITE_BEIAN = resMap.get('SITE_BEIAN')
document.title = resMap.get('SITE_TITLE')
document
.querySelector('link[rel="shortcut icon"]')
@@ -99,6 +100,9 @@ const storeSetup = () => {
return siteConfig.SITE_COPYRIGHT
}
const getForRecord = () => {
return siteConfig.SITE_BEIAN
}
return {
...toRefs(settingConfig),
...toRefs(siteConfig),
@@ -113,7 +117,8 @@ const storeSetup = () => {
getFavicon,
getLogo,
getTitle,
getCopyright
getCopyright,
getForRecord
}
}