This commit is contained in:
parent
4008d2d301
commit
3d40ad3bfb
|
@ -31,9 +31,9 @@ axios.interceptors.response.use(
|
||||||
// console.log(error.response,"响应拦截器失败")
|
// console.log(error.response,"响应拦截器失败")
|
||||||
ElMessage.error("请重新登录!");
|
ElMessage.error("请重新登录!");
|
||||||
// window.location.href = '/#/login?returnURL=' + window.location.href
|
// window.location.href = '/#/login?returnURL=' + window.location.href
|
||||||
window.location.href =
|
// window.location.href =
|
||||||
"http://220.191.238.50:996/api/login?returnURL=" +
|
// "http://220.191.238.50:996/api/login?returnURL=" +
|
||||||
window.location.href;
|
// window.location.href;
|
||||||
} else if (error.response.status == 404) {
|
} else if (error.response.status == 404) {
|
||||||
ElMessage.error("Status:404,正在请求不存在的服务器记录!");
|
ElMessage.error("Status:404,正在请求不存在的服务器记录!");
|
||||||
} else if (error.response.status == 500) {
|
} else if (error.response.status == 500) {
|
||||||
|
|
|
@ -138,7 +138,7 @@ const reset_font = () => {
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
let token = tools.data.get("token");
|
let token = tools.data.get("token");
|
||||||
console.log(token, "token");
|
// console.log(token, "token");
|
||||||
if (token == null) {
|
if (token == null) {
|
||||||
ElMessage.error("请重新登录!");
|
ElMessage.error("请重新登录!");
|
||||||
window.location.href =
|
window.location.href =
|
||||||
|
|
|
@ -167,7 +167,7 @@ import tools from "@/utils/tools";
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
let token = tools.data.get("token");
|
let token = tools.data.get("token");
|
||||||
console.log(token, "token");
|
// console.log(token, "token");
|
||||||
if (token == null) {
|
if (token == null) {
|
||||||
ElMessage.error("请重新登录!");
|
ElMessage.error("请重新登录!");
|
||||||
window.location.href =
|
window.location.href =
|
||||||
|
|
Loading…
Reference in New Issue