Browse Source

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

TIANYONG 1 year ago
parent
commit
6b6c1939f3
1 changed files with 3 additions and 2 deletions
  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) => {
 router.beforeEach(async (to, from, next) => {
   const title = to.meta.title
   const title = to.meta.title
-  document.title = (title || '酷乐秀') as any
-
+  // document.title = (title || '酷乐秀') as any
+  // 备案要求,title名称必须和备案名称一致
+  document.title = '酷乐秀'
   try {
   try {
     // 获取用户信息
     // 获取用户信息
     await getUserInfo()
     await getUserInfo()