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

+ 7 - 6
src/utils/page-tab-util.js

@@ -248,21 +248,22 @@ export function logout(route, from) {
     if (localStorage.getItem('singleUserInfo') == '1') {
     if (localStorage.getItem('singleUserInfo') == '1') {
       router.push({
       router.push({
         path: '/singleLogin',
         path: '/singleLogin',
-        query: from ? { from } : void 0
+        // query: from ? { from } : void 0
       });
       });
     } else {
     } else {
       router.push({
       router.push({
         path: '/login',
         path: '/login',
-        query: from ? { from } : void 0
+        // query: from ? { from } : void 0
       });
       });
     }
     }
   } else {
   } else {
     if (localStorage.getItem('singleUserInfo') == '1') {
     if (localStorage.getItem('singleUserInfo') == '1') {
-      location.replace(
-        BASE_URL + 'singleLogin' + (from ? '?from=' + from : '')
-      );
+      // location.replace(
+      //   BASE_URL + 'singleLogin' + (from ? '?from=' + from : '')
+      // );
+      location.replace(window.location.origin + '/singleLogin');
     } else {
     } else {
-      location.replace(BASE_URL + 'login' + (from ? '?from=' + from : ''));
+      location.replace(window.location.origin + '/login');
     }
     }
   }
   }