Skip to content

Commit 9f3ae2b

Browse files
committed
fix: simplify route guard
1 parent eeb9253 commit 9f3ae2b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ router.beforeEach((to, _, next) => {
2121

2222
if (to.name === 'day') {
2323
store.setDate(to.params.day as string)
24-
next()
25-
} else {
26-
next()
2724
}
25+
26+
next()
2827
})
2928

0 commit comments

Comments
 (0)