Change to anchors with click handlers so we can run code before transitioning to next pages

This commit is contained in:
Matthew Aaron Raymer
2022-12-05 16:52:28 +08:00
parent 290a13fbf2
commit 617de58a92
2 changed files with 16 additions and 8 deletions

View File

@@ -112,7 +112,7 @@ const router = createRouter({
router.beforeEach(async (to) => {
// redirect to start page if no account
const publicPages = ["/start"];
const publicPages = ["/start", "/account", "/import-account"];
const authRequired = !publicPages.includes(to.path);
const authStore = useAccountStore();