Skip to content

Commit

Permalink
Merge f6ed49f into 32cacb3
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo committed May 19, 2024
2 parents 32cacb3 + f6ed49f commit efb76e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/src/router/createVueRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ 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)
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 efb76e6

Please sign in to comment.