Skip to content

Commit de2fa24

Browse files
committed
fix: route resolve error
1 parent f6ed49f commit de2fa24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/client/src/router/createVueRouter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export const createVueRouter = (): Router => {
4040
// and save page data to route meta
4141
router.beforeResolve(async (to, from): Promise<string | void> => {
4242
if (to.path !== from.path || from === START_LOCATION) {
43-
const fullPath = to.fullPath.split('#')[0]
43+
console.log(to)
44+
const fullPath = to.fullPath.split(/#|\?/)[0]
4445
const route = resolveRoute(fullPath)
4546

4647
if (route.path !== fullPath) {

0 commit comments

Comments
 (0)