登录判断
This commit is contained in:
parent
acda64cbfa
commit
ec9d8982d6
|
@ -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",
|
||||||
});
|
});
|
||||||
|
|
|
@ -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",
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue