|
@@ -1,6 +1,5 @@
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
import { MessageBox, Message, Loading } from 'element-ui'
|
|
import { MessageBox, Message, Loading } from 'element-ui'
|
|
-import router from '@/router'
|
|
|
|
import { getToken,removeToken } from '@/utils/auth'
|
|
import { getToken,removeToken } from '@/utils/auth'
|
|
import {tansParams,judgmentNetworkReturnAddress} from "@/utils/public";
|
|
import {tansParams,judgmentNetworkReturnAddress} from "@/utils/public";
|
|
|
|
|
|
@@ -84,9 +83,7 @@ serviceAxios.interceptors.response.use(res => {
|
|
if(localStorage.getItem('entranceJumpType') == 'PC'){
|
|
if(localStorage.getItem('entranceJumpType') == 'PC'){
|
|
window.location.href = process.env.VUE_APP_OUT_URL;
|
|
window.location.href = process.env.VUE_APP_OUT_URL;
|
|
}else{
|
|
}else{
|
|
- router.replace({
|
|
|
|
- path: '/'
|
|
|
|
- })
|
|
|
|
|
|
+ window.location.href='#/';
|
|
}
|
|
}
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
}
|
|
}
|
|
@@ -104,9 +101,7 @@ serviceAxios.interceptors.response.use(res => {
|
|
if(localStorage.getItem('entranceJumpType') == 'PC'){
|
|
if(localStorage.getItem('entranceJumpType') == 'PC'){
|
|
window.location.href = process.env.VUE_APP_OUT_URL;
|
|
window.location.href = process.env.VUE_APP_OUT_URL;
|
|
}else{
|
|
}else{
|
|
- router.replace({
|
|
|
|
- path: '/'
|
|
|
|
- })
|
|
|
|
|
|
+ window.location.href='#/';
|
|
}
|
|
}
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
}
|
|
}
|
|
@@ -157,9 +152,7 @@ serviceAxios.interceptors.response.use(res => {
|
|
if(localStorage.getItem('entranceJumpType') == 'PC'){
|
|
if(localStorage.getItem('entranceJumpType') == 'PC'){
|
|
window.location.href = process.env.VUE_APP_OUT_URL;
|
|
window.location.href = process.env.VUE_APP_OUT_URL;
|
|
}else{
|
|
}else{
|
|
- router.replace({
|
|
|
|
- path: '/'
|
|
|
|
- })
|
|
|
|
|
|
+ window.location.href='#/';
|
|
}
|
|
}
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
}
|
|
}
|