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
list下: import { getListInfo } from "../../api/list"; const list = { state: { dataList: "list数据" }, mutations: {}, actions: { async getDataList() { let status = await getListInfo(); console.log(status); } } };
export default list;
页面中: mounted() { console.log(this.$store.state); this.getDataList(); }, ...mapActions(["getDataList"]),
输出了下确实走到了请求,但是返回值就是OK at _default
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Question(提问)
Steps to reproduce(问题复现步骤)
list下:
import { getListInfo } from "../../api/list";
const list = {
state: {
dataList: "list数据"
},
mutations: {},
actions: {
async getDataList() {
let status = await getListInfo();
console.log(status);
}
}
};
export default list;
Screenshot or Gif(截图或动态图)
页面中:
mounted() {
console.log(this.$store.state);
this.getDataList();
},
...mapActions(["getDataList"]),
输出了下确实走到了请求,但是返回值就是OK at _default
The text was updated successfully, but these errors were encountered: