Skip to content

Commit

Permalink
Merge de2fa24 into 32cacb3
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed May 19, 2024
2 parents 32cacb3 + de2fa24 commit 5de0411
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/src/router/createVueRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ export const createVueRouter = (): Router => {
// and save page data to route meta
router.beforeResolve(async (to, from): Promise<string | void> => {
if (to.path !== from.path || from === START_LOCATION) {
const route = resolveRoute(to.fullPath)
console.log(to)
const fullPath = to.fullPath.split(/#|\?/)[0]
const route = resolveRoute(fullPath)

if (route.path !== to.fullPath) {
if (route.path !== fullPath) {
return route.path
}
const pageChunk = await route.loader()
Expand Down

0 comments on commit 5de0411

Please sign in to comment.