@dayan_hjm hai 1 ano
pai
achega
f0cc09e93f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/utils/util.js

+ 2 - 2
src/utils/util.js

@@ -1007,9 +1007,9 @@ export function deleteCacheAndChangeUrl(next = 'left', callback, needName) {//ne
1007
     message.error("您没有当前路径的权限!").then(() => {
1007
     message.error("您没有当前路径的权限!").then(() => {
1008
       setTimeout(() => {
1008
       setTimeout(() => {
1009
         if(HasScreen && HasScreen[0]){
1009
         if(HasScreen && HasScreen[0]){
1010
-          window.location = window.location.origin + '/transfer.html#'+HasScreen[0];
1010
+          window.location = window.location.href.split('/transfer.html')[0] + '/transfer.html#'+HasScreen[0];
1011
         }else{
1011
         }else{
1012
-          window.location = window.location.origin + '/transfer.html#/login';
1012
+          window.location = window.location.href.split('/transfer.html')[0] + '/transfer.html#/login';
1013
         }
1013
         }
1014
       }, 300)
1014
       }, 300)
1015
     })
1015
     })