methods: {
async read(){
await this.ReadImage()
},
ReadImage(){
uni.request({})
}
}
主要是async 和 await 这两个
如果通过uni.request 异步请求数据填入数组会出现数组错乱的情况,所以就必须要让他按照顺序执行
methods: {
async read(){
await this.ReadImage()
},
ReadImage(){
uni.request({})
}
}
主要是async 和 await 这两个
如果通过uni.request 异步请求数据填入数组会出现数组错乱的情况,所以就必须要让他按照顺序执行