Skip to content

Commit 6d3f663

Browse files
committed
fix(routing): switch to Calendar as default route
1 parent f34dfb3 commit 6d3f663

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/router/create-router.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const createRouter = ({ baseName = '', baseUrl = import.meta.env.BASE_URL
2424
routes: [
2525
{
2626
path: `${baseName}/:pathMatch(.*)`,
27-
redirect: { name: Route.Progress },
27+
redirect: { name: Route.Calendar },
2828
},
2929
..._routes,
3030
],
@@ -63,7 +63,7 @@ export const createRouter = ({ baseName = '', baseUrl = import.meta.env.BASE_URL
6363
});
6464

6565
restoreLastRoute().then(async _route => {
66-
await router.push(_route?.name !== Route.Login ? _route : { name: Route.Progress });
66+
await router.push(_route?.name !== Route.Login ? _route : { name: Route.Calendar });
6767
});
6868

6969
return router;

src/router/routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const panelRoutes = (base: Route): RouteRecordRaw[] => [
5151
export const routes: RouteRecordRaw[] = [
5252
{
5353
path: '/',
54-
redirect: { name: Route.Progress },
54+
redirect: { name: Route.Calendar },
5555
},
5656
{
5757
path: `/${Route.Login}`,

src/stores/settings/extension.store.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const useExtensionSettingsStore = defineStore('settings.extension', () =>
9292
restoreRoute,
9393
toggleTab,
9494
routeDictionary,
95-
enabledTabs: computed(() => Object.entries(routeDictionary) as [Route, boolean][]),
95+
enabledTabs: computed(() => Object.entries(routeDictionary).filter(([r]) => r !== Route.Calendar) as [Route, boolean][]),
9696
enabledRoutes: computed(() =>
9797
Object.entries(routeDictionary)
9898
.filter(([, value]) => value)

0 commit comments

Comments
 (0)