chenyc
2024-12-25 21ef2641f0292f01cb0bb362c24b30b5014dae8e
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();