From: Eduardo San Martin Morote Date: Wed, 20 Apr 2022 13:58:14 +0000 (+0200) Subject: fix(view): handle @vue/compat automatically X-Git-Tag: v4.0.15~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92becf6dc6c4ef21985abb52887b4cec626f5c82;p=thirdparty%2Fvuejs%2Frouter.git fix(view): handle @vue/compat automatically Fix #1315 --- diff --git a/src/RouterView.ts b/src/RouterView.ts index 027d6746..d8d48fc6 100644 --- a/src/RouterView.ts +++ b/src/RouterView.ts @@ -52,6 +52,10 @@ export const RouterViewImpl = /*#__PURE__*/ defineComponent({ route: Object as PropType, }, + // Better compat for @vue/compat users + // https://github.com/vuejs/router/issues/1315 + compatConfig: { MODE: 3 }, + setup(props, { attrs, slots }) { __DEV__ && warnDeprecatedUsage()