This commit is contained in:
parent
f94d53ec0f
commit
e0bc528d5d
|
@ -171,7 +171,7 @@ const router = createRouter({
|
||||||
});
|
});
|
||||||
|
|
||||||
router.beforeEach((to, form, next) => {
|
router.beforeEach((to, form, next) => {
|
||||||
console.log(to);
|
// console.log(to);
|
||||||
queue(to.meta.id, to.name, to.path);
|
queue(to.meta.id, to.name, to.path);
|
||||||
let menu = tools.data.get("menu");
|
let menu = tools.data.get("menu");
|
||||||
let token = tools.data.get("token");
|
let token = tools.data.get("token");
|
||||||
|
|
|
@ -153,8 +153,6 @@ const login = () => {
|
||||||
tools.data.set("type", 1);
|
tools.data.set("type", 1);
|
||||||
getMenu();
|
getMenu();
|
||||||
if (backurl) {
|
if (backurl) {
|
||||||
console.log(222222);
|
|
||||||
|
|
||||||
window.location.href = backurl;
|
window.location.href = backurl;
|
||||||
tools.data.remove("backUrl");
|
tools.data.remove("backUrl");
|
||||||
}
|
}
|
||||||
|
@ -215,7 +213,6 @@ const login = () => {
|
||||||
window.addEventListener("mousemove", resetTimer);
|
window.addEventListener("mousemove", resetTimer);
|
||||||
window.addEventListener("keydown", resetTimer);
|
window.addEventListener("keydown", resetTimer);
|
||||||
if (backurl) {
|
if (backurl) {
|
||||||
console.log(33333333333);
|
|
||||||
window.location.href = backurl;
|
window.location.href = backurl;
|
||||||
tools.data.remove("backUrl");
|
tools.data.remove("backUrl");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue