yusheng 4 月之前
父節點
當前提交
606f72937c
共有 1 個文件被更改,包括 2 次插入2 次删除
  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) {
     router.push({
       path: '/login',
-      query: from ? { from } : void 0
+      // query: from ? { from } : void 0
     });
   } else {
     // 这样跳转避免再次登录重复注册动态路由
-    location.replace(BASE_URL + 'login' + (from ? '?from=' + from : ''));
+      location.replace(window.location.origin + '/login');
   }
 }