We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vuex
input
v-model
computed
message
Computed property "message" was assigned to but it has no setter.
原因 vuex 在严格模式下,当 v-model 试图直接修改 message,在严格模式中,由于这个修改不是在 mutation 函数中执行的, 这里会抛出一个错误。
mutation
解决方案 vue 官方文档中已经给出了相应的解决方案: vue 表单处理
vue
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在使用
vuex
时,input
中使用v-model
双向绑定计算属性computed
中的message
原因
vuex
在严格模式下,当v-model
试图直接修改message
,在严格模式中,由于这个修改不是在mutation
函数中执行的, 这里会抛出一个错误。解决方案
vue
官方文档中已经给出了相应的解决方案: vue 表单处理The text was updated successfully, but these errors were encountered: