Sfoglia il codice sorgente

fix: 修复错误的跳转逻辑

Jinyao 5 anni fa
parent
commit
609eb9d626
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  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) => {
 router.afterEach((to, from) => {
   if (to.matched.some((record) => record.meta.hideNavigator)) {
   if (to.matched.some((record) => record.meta.hideNavigator)) {
     document.getElementsByTagName('header')[0]!.style.display = 'none';
     document.getElementsByTagName('header')[0]!.style.display = 'none';