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