mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 05:28:13 +00:00
fix loginu
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ app.mount('#app');
|
||||
router.beforeEach((to, from, next) => {
|
||||
const store = useStore();
|
||||
|
||||
if (to.meta.protected && !store.user) {
|
||||
if (to.meta.protected && !store.user && !window.localStorage.getItem('user')) {
|
||||
next('/login');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user