chenyc
2024-10-09 22b63390de2b195ea614904d76c151cf2ae5b89c
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();