Sfoglia il codice sorgente

feat: 备案要求,页面title名称必须和备案名称一致

TIANYONG 1 anno fa
parent
commit
6b6c1939f3
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/router/index-admin.ts

+ 3 - 2
src/router/index-admin.ts

@@ -20,8 +20,9 @@ const router: Router = createRouter({
 
 router.beforeEach(async (to, from, next) => {
   const title = to.meta.title
-  document.title = (title || '酷乐秀') as any
-
+  // document.title = (title || '酷乐秀') as any
+  // 备案要求,title名称必须和备案名称一致
+  document.title = '酷乐秀'
   try {
     // 获取用户信息
     await getUserInfo()