From 3bc3c1dd0337282f8f1bda756ec8c08d0f73dbb6 Mon Sep 17 00:00:00 2001 From: linzhe141 <1572213544@qq.com> Date: Thu, 5 Sep 2024 17:13:01 +0800 Subject: [PATCH] chore: update --- packages/runtime-core/__tests__/helpers/useTemplateRef.spec.ts | 2 +- packages/runtime-core/src/component.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/runtime-core/__tests__/helpers/useTemplateRef.spec.ts b/packages/runtime-core/__tests__/helpers/useTemplateRef.spec.ts index 83fff94a47a..e590a719946 100644 --- a/packages/runtime-core/__tests__/helpers/useTemplateRef.spec.ts +++ b/packages/runtime-core/__tests__/helpers/useTemplateRef.spec.ts @@ -93,7 +93,7 @@ describe('useTemplateRef', () => { const foo = useTemplateRef('bar') return { [key]: tRef, - ['foo']: foo, + foo, } }, render() { diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index d2b960f32af..b6f47b79b51 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -942,7 +942,6 @@ export function handleSetupResult( if (__DEV__) { // dev only Object.defineProperty(setupResult, '__v__setupResult', { - enumerable: false, value: setupResult, }) exposeSetupStateOnRenderContext(instance)