diff --git a/src/router/index.ts b/src/router/index.ts index 12c441e..77d4ac8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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;