Skip to content

Commit

Permalink
chore: remove beforeEach theme
Browse files Browse the repository at this point in the history
  • Loading branch information
szmxx committed Sep 10, 2023
1 parent c702821 commit 5077b2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ router.beforeEach(async (to, from, next) => {
if (isEmpty(history.state.current)) {
assign(history.state, { current: from.fullPath })
}
const theme = to?.query?.theme as string
useTheme(theme)
console.log(to, from)
next()
})

Expand Down

0 comments on commit 5077b2d

Please sign in to comment.