edit login & otp
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ const router = createRouter({
|
||||
router.beforeEach(async (to) => {
|
||||
const auth = useAuthStore();
|
||||
|
||||
if (auth.token) {
|
||||
if (auth.token && !auth.user) {
|
||||
await auth.loadUser();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user