Skip to content

Commit 88052a5

Browse files
Update settings watch update
1 parent c34f662 commit 88052a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugin/VColorField.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ const props = withDefaults(defineProps<Props>(), {
283283
});
284284
285285
const injectedOptions = inject(globalOptions, {});
286-
let settings = reactive({ ...props, ...injectedOptions });
286+
const settings = reactive({ ...props, ...injectedOptions });
287287
288288
watchEffect(() => {
289-
settings = { ...props, ...injectedOptions };
289+
Object.assign(settings, { ...props, ...injectedOptions });
290290
});
291291
292292

0 commit comments

Comments
 (0)