登录路由

This commit is contained in:
13218645326 2023-12-12 15:23:22 +08:00
parent b7148d9a54
commit 961480060f
1 changed files with 2 additions and 2 deletions

View File

@ -259,10 +259,10 @@ const router = createRouter({
router.beforeEach((to, from, next) => {
const store = useStore()
if (store.token || to.path == '/Login') {
if (store.token || to.path == '/login') {
next()
} else {
next('/Login')
next('/login')
}
// chrome
document.body.scrollTop = 0;