diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index 11a6cafbcf1..2b32cd27e3d 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -788,7 +788,7 @@ export function finishComponentSetup( (__COMPAT__ && instance.vnode.props && instance.vnode.props['inline-template']) || - Component.template + Component.template || instance.ctx.$options.template if (template) { if (__DEV__) { startMeasure(instance, `compile`)