address.js添加namespaced:trueexport default{ namespaced:true, state, mutation }或者在api.js把commit('address/updata')改成commit('updata')
address.js
添加namespaced:true
或者在
api.js
把commit('address/updata')
改成commit('updata')