请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

错误:graphql_1.execute(...).then is not a function

调用

const xxx = {
 type: MediaQueryType,
 args: {},
 resolve (root, params, options){
   const data = api.xxx()
   return data
 }
}

api 方法中的实现

export async function xxx () {
 return axios.get(`${BASE_URL}/xx/xxxxx`)
}

提示错误:graphql_1.execute(...).then is not a function

resolve 中用 axios 获取数据不可行么?

正在回答 回答被采纳积分+3

1回答

提问者 魂淡_0002 2018-08-11 01:03:17

已解决

1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信