initSystemData: async function() {
let that = this;
let [error, res] = await uni.request({
url: 'xxx',
data: {xxx},
method: 'POST',
header: {
'content-type': 'application/x-www-form-urlencoded'
}
});
console.log(JSON.stringify(res));
}
代码如上
运行后会报错: Uncaught (in promise) TypeError: arr[Symbol.iterator] is not a function
按照官方给的例子,好像没什么不同
超链接:
官方封装例子
老哥们会有这种情况吗?
c豆腐 (作者)
感谢老哥,老哥辛苦了
2019-04-15 16:21