chenyc
2025-02-13 c7d64da312576120b6252f91fea4e0052fd5f8dc
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();