我无法更新输入值 Directus

I can't update input value Directus

在子组件中使用 this.values.input_name = 'some value' 更新输入或在子自定义组件中通过 javascript 进行更改时,新值会正确显示在父级,但未在保存时更新。如果手动更改值,一切都会按预期工作。

有没有办法从子组件为父组件的输入调用 onchange 事件? 你能帮帮我吗?

谢谢。

更新输入值的代码为:

this.$store.dispatch('stageValue', { field: '', value: '' });

感谢 this answer

我可以解决这个问题