ZengTao
2024-10-17 d5d652d23a0bdf64ce527a6b592713a849abac7d
UI-Project/src/router/index.js
@@ -213,7 +213,7 @@
            }
          ]
        },
         /*----------- 可视化系统 ----------------*/
         {
          path: 'Visualization',
@@ -323,7 +323,7 @@
    
  ]
})
// 导航守卫  
router.beforeEach((to, from, next) => {  
  const isAuthenticated = !!localStorage.getItem('authToken'); // 假设这是你的登录状态检查逻辑  
@@ -333,4 +333,4 @@
    next(); // 否则继续导航  
  }  
}); 
export default router
export default router