vuex 不会在变异处理程序之外改变 vuex 存储状态 [英] vuex do not mutate vuex store state outside mutation handlers

查看:27
本文介绍了vuex 不会在变异处理程序之外改变 vuex 存储状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[vuex] 不要在变异处理程序之外改变 vuex 存储状态.

尝试编辑字段时,此消息会显示在终端中.

如何正确使用表格?

-

 数据(){返回 {形式: {电子邮件:空}};},计算:{...mapGetters('auth', ['getSeller'])},方法: {...mapActions('auth', ['setSeller'])},创建(){this.form.email = this.getSeller.email;}

--

vue.runtime.esm.js?2b0e:619 [Vue 警告]:观察者回调错误function () { return this._data.$$state }":Error: [vuex] do不要在变异处理程序之外改变 vuex 存储状态."

更新: