gx
chenyc
2024-10-09 a8245fd78a1f5c213df66567a4b708fa7e4b3b70
src/router/index.ts
@@ -98,7 +98,11 @@
   if (to.path === '/login' && !token) {
      next();
      NProgress.done();
   } else {
   }else if (to.path === '/tiaochabiao1' && !token) {
      next();
      NProgress.done();
   }
    else {
      if (!token) {
         next(`/login?redirect=${to.path}&params=${JSON.stringify(to.query ? to.query : to.params)}`);
         Session.clear();