yusheng hace 4 meses
padre
commit
606f72937c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/utils/page-tab-util.js

+ 2 - 2
src/utils/page-tab-util.js

@@ -246,10 +246,10 @@ export function logout(route, from) {
   if (route) {
   if (route) {
     router.push({
     router.push({
       path: '/login',
       path: '/login',
-      query: from ? { from } : void 0
+      // query: from ? { from } : void 0
     });
     });
   } else {
   } else {
     // 这样跳转避免再次登录重复注册动态路由
     // 这样跳转避免再次登录重复注册动态路由
-    location.replace(BASE_URL + 'login' + (from ? '?from=' + from : ''));
+      location.replace(window.location.origin + '/login');
   }
   }
 }
 }