Skip to content

Commit 92becf6

Browse files
committed
fix(view): handle @vue/compat automatically
Fix #1315
1 parent 5ad4864 commit 92becf6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/RouterView.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export const RouterViewImpl = /*#__PURE__*/ defineComponent({
5252
route: Object as PropType<RouteLocationNormalizedLoaded>,
5353
},
5454

55+
// Better compat for @vue/compat users
56+
// https://github.com/vuejs/router/issues/1315
57+
compatConfig: { MODE: 3 },
58+
5559
setup(props, { attrs, slots }) {
5660
__DEV__ && warnDeprecatedUsage()
5761

0 commit comments

Comments
 (0)