项目里程碑初步优化
This commit is contained in:
@@ -546,6 +546,9 @@ router.beforeEach(async (to, _from, next) => {
|
||||
await studyStore.ensureDefaultStudy();
|
||||
}
|
||||
}
|
||||
if (token && studyStore.currentStudy && auth.user?.email) {
|
||||
studyStore.rememberCurrentStudyForUser(auth.user.email);
|
||||
}
|
||||
if (!to.meta.public && !token) {
|
||||
next({ path: "/login" });
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user