所以我有vuex状态,其中我有我的测试数据 return { avatar: null,$$state }": "Error: [vuex] do not mutate vuex store state outside mutation handlers."a026:1897 Error: [vuex] do not mutate vuex store st
我在我的存储操作中使用了Axios,并希望基于某种状态设置Axios标头(以更改接受语言的请求标头)。当尝试访问导出外部的存储时,我得到一个错误“无法找到未定义的属性状态”。我的store/index.js文件: import Vue from "vue";import Axios from "axios";