This commit is contained in:
duanxiaohai 2024-08-06 15:48:51 +08:00
parent fba0640d6e
commit 392fb8ae05
2 changed files with 7 additions and 7 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -137,13 +137,13 @@ const reset_font = () => {
"scale(" + width / 1920 + "," + height / 1080 + ")";
};
onMounted(() => {
// let token = tools.data.get("token");
// // console.log(token, "token");
// if (token == null) {
// ElMessage.error("!");
// window.location.href =
// "http://220.191.238.50:996/api/login?returnURL=" + window.location.href;
// }
let token = tools.data.get("token");
// console.log(token, "token");
if (token == null) {
ElMessage.error("请重新登录!");
window.location.href =
"http://220.191.238.50:996/api/login?returnURL=" + window.location.href;
}
reset_font();
reset_font();
});