我在mapGetters里的目的是从商店里得到param, ...mapGetters("agent",["getConfig"]),它工作得很好,但确实有错误:Vue警告:计算属性"getConfig“被分配给它,但它没有setter。$state.commit('setConfiguration', value ) }}
vue.runtime.esm.js:620 V
我正在和Vuex在Vue Storefront做一个项目。通过以下计算属性从Vuex Store State调用这些筛选器: getSortingAttributes: function () {
if (store.state.tweakwise.tweakwiseLayeredNavigationAttributes其中.poperties是数组中的一个对象。即使我向getSortingAttributes添加了一个if-statement,以防止它调用未定义的数据,并使其成为一