This commit is contained in:
parent
e9b574661e
commit
6ef2c5bf67
|
@ -139,14 +139,14 @@ const reset_font = () => {
|
|||
onMounted(() => {
|
||||
let token = tools.data.get("token");
|
||||
// console.log(token, "token");
|
||||
// if (token == null) {
|
||||
// ElMessage.error({
|
||||
// message: "请重新登录!",
|
||||
// offset: 100,
|
||||
// });
|
||||
// window.location.href =
|
||||
// "http://220.191.238.50:996/api/login?returnURL=" + window.location.href;
|
||||
// }
|
||||
if (token == null) {
|
||||
ElMessage.error({
|
||||
message: "请重新登录!",
|
||||
offset: 100,
|
||||
});
|
||||
window.location.href =
|
||||
"http://220.191.238.50:996/api/login?returnURL=" + window.location.href;
|
||||
}
|
||||
reset_font();
|
||||
reset_font();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue