feat: auth & workspace load

This commit is contained in:
DarkSky
2022-12-30 19:42:01 +08:00
committed by DarkSky
parent 7b34ea010c
commit b01703b836
26 changed files with 161 additions and 518 deletions

View File

@@ -26,6 +26,7 @@ export const useEnsureWorkspace = () => {
meta => meta.id.toString() === router.query.workspaceId
) === -1
) {
debugger;
router.push('/404');
return;
}
@@ -35,6 +36,7 @@ export const useEnsureWorkspace = () => {
router.query.workspaceId &&
router.query.workspaceId !== defaultOutLineWorkspaceId
) {
debugger;
router.push('/404');
return;
}