Parcourir la source

fix: 修复错误的跳转逻辑

Jinyao il y a 5 ans
Parent
commit
609eb9d626
1 fichiers modifiés avec 0 ajouts et 6 suppressions
  1. 0 6
      src/router/index.ts

+ 0 - 6
src/router/index.ts

@@ -88,12 +88,6 @@ router.beforeEach((to, from, next) => {
   }
 });
 
-router.beforeEach((to, from, next) => {
-  if (to.name !== HOME || !isUserLoggedIn()) {
-    next();
-  }
-});
-
 router.afterEach((to, from) => {
   if (to.matched.some((record) => record.meta.hideNavigator)) {
     document.getElementsByTagName('header')[0]!.style.display = 'none';