This commit is contained in:
duanxiaohai 2024-11-14 16:39:32 +08:00
parent f94d53ec0f
commit e0bc528d5d
2 changed files with 1 additions and 4 deletions

View File

@ -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");

View File

@ -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");
} }