如下所示: Passing data from Props to data in vue.js 我有: https://codesandbox.io/s/u3mr8 这会给出以下警告: ? 你真的需要一个计算机道具的setter吗?查看: Computed property was assigned to but it has no setter - a toggle component 我想出了: https://codesandbox.io
65d7:479 [Vue warn]: Computed property "notification" was assigned to but it has no setter.我知道可以在计算属性中定义setter,就像在vue.js文档中定义一样,但是当有多个值要设置时,我不知道该怎么做,就像我的特殊情况一样。
所以非常感谢你的帮助来解决这个问题。