@dayan_hjm před 1 rokem
rodič
revize
f0cc09e93f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 1007
     message.error("您没有当前路径的权限!").then(() => {
1008 1008
       setTimeout(() => {
1009 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 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 1014
       }, 300)
1015 1015
     })