Skip to content
New issue

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

为什么get请求接口正常请求返回值是OK at _default #3237

Open
saikete opened this issue Jun 6, 2020 · 0 comments
Open

为什么get请求接口正常请求返回值是OK at _default #3237

saikete opened this issue Jun 6, 2020 · 0 comments

Comments

@saikete
Copy link

saikete commented Jun 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant