This commit is contained in:
parent
fba0640d6e
commit
392fb8ae05
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue