This commit is contained in:
duanxiaohai 2024-08-11 18:12:09 +08:00
parent e9b574661e
commit 6ef2c5bf67
1 changed files with 8 additions and 8 deletions

View File

@ -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();
});