登录判断

This commit is contained in:
姚宇浩 2024-11-18 09:25:45 +08:00
parent acda64cbfa
commit ec9d8982d6
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ const resetTimer = () => {
} }
let backurl = window.location.href; let backurl = window.location.href;
tools.data.set("backUrl", backurl); tools.data.set("backUrl", backurl);
tools.data.remove('token');
router.replace({ router.replace({
path: "/guide", path: "/guide",
}); });

View File

@ -40,6 +40,7 @@ axios.interceptors.response.use(
let backurl=window.location.href; let backurl=window.location.href;
tools.data.set("backUrl",backurl); tools.data.set("backUrl",backurl);
tools.data.remove('token');
router.replace({ router.replace({
path: "/guide", path: "/guide",
}); });