From bcc5e2f77a54c64ae1d84a7cbfddacd0930c6d82 Mon Sep 17 00:00:00 2001 From: china_ahhui Date: Sun, 2 Jun 2024 12:41:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddocument=E7=9A=84title?= =?UTF-8?q?=E5=87=BA=E7=8E=B0undefined=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/utils/other.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/utils/other.ts b/web/src/utils/other.ts index 6e1033e..59b276b 100644 --- a/web/src/utils/other.ts +++ b/web/src/utils/other.ts @@ -32,7 +32,7 @@ export function elSvg(app: App) { */ export function useTitle() { const stores = SystemConfigStore(pinia); - const { systemConfig } = storeToRefs(stores); + const { systemConfig }: { systemConfig: any} = storeToRefs(stores); nextTick(() => { let webTitle = ''; let globalTitle: string = systemConfig['base.web_title']; @@ -42,7 +42,8 @@ export function useTitle() { } else { webTitle = setTagsViewNameI18n(router.currentRoute.value); } - document.title = `${webTitle} - ${globalTitle}` || "DVAdmin"; + // document.title = `${webTitle} - ${globalTitle}` || "DVAdmin"; + document.title = `${webTitle}`; }); }