mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-05-13 01:46:01 +08:00
fix 报错问题处理
This commit is contained in:
@@ -12,15 +12,23 @@ export function initWebsiteConfig() {
|
||||
const websiteConfig = localStorage.getItem('websiteConfig')
|
||||
if (websiteConfig) {
|
||||
WEBSITE_CONFIG.value = JSON.parse(websiteConfig)
|
||||
// @ts-ignore 动态更新 favicon
|
||||
document.getElementById('favicon').href = getFavicon()
|
||||
const favicon = document.getElementById('favicon')
|
||||
if (favicon) {
|
||||
console.log(123)
|
||||
// @ts-ignore 动态更新 favicon
|
||||
favicon.href = getFavicon()
|
||||
}
|
||||
}
|
||||
// 然后更新配置
|
||||
getWebsite().then((res) => {
|
||||
WEBSITE_CONFIG.value = res.data
|
||||
localStorage.setItem('websiteConfig', JSON.stringify(res.data))
|
||||
// @ts-ignore 动态更新 favicon
|
||||
document.getElementById('favicon').href = getFavicon()
|
||||
const favicon = document.getElementById('favicon')
|
||||
if (favicon) {
|
||||
// @ts-ignore 动态更新 favicon
|
||||
favicon.href = getFavicon()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user