Skip to content

Commit 91989be

Browse files
committed
fix(web): skip if doesn't start with basename
1 parent b9c7811 commit 91989be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/router/create-router.ts

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export const createRouter = ({ baseName = '', baseUrl = import.meta.env.BASE_URL
4444
}
4545
}
4646

47+
if (!to.path.startsWith(baseName)) {
48+
console.info('router.beforeResolve', { baseName, baseUrl }, JSON.parse(JSON.stringify(to)));
49+
return;
50+
}
51+
4752
await waitAppReady.value;
4853

4954
if (!isAuthenticated.value && to.name !== Route.Login) {

0 commit comments

Comments
 (0)