yanghao 1 месяц назад
Родитель
Сommit
06afd38031
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -109,7 +109,7 @@ const parseURL = (
   return { basePath, paramsObject };
 };
 
-const whiteList = ["/login", "/social-login", "/auth-redirect"];
+const whiteList = ["/", "/login", "/social-login", "/auth-redirect"];
 router.beforeEach(async (to, from, next) => {
   // 设置页面标题
   const title = to.meta.title as string;