Skip to content

Commit 3e1b0c1

Browse files
authored
Fix Vue 2.7 + composition API error
1 parent 963ff7f commit 3e1b0c1

File tree

1 file changed

+1
-1
lines changed
  • packages/app-backend-vue2/src/components

1 file changed

+1
-1
lines changed

packages/app-backend-vue2/src/components/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ export function editState(
499499
&& Object.keys(componentInstance._setupState).includes(path[0])
500500
) {
501501
// setup
502-
target = componentInstance._setupProxy
502+
target = componentInstance._setupProxy || componentInstance
503503

504504
const currentValue = stateEditor.get(target, path)
505505
if (currentValue != null) {

0 commit comments

Comments
 (0)