This commit is contained in:
duanxiaohai 2024-07-31 11:37:17 +08:00
parent 4008d2d301
commit 3d40ad3bfb
4 changed files with 5 additions and 5 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -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) {

View File

@ -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 =

View File

@ -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 =