处理多个请求Promise.all
getOptionsLabel() {
return Promise.all([
new Promise(async (reslove) => {
const res = await optionsApi.listByGroup('ClueSource')
if (res.code === '00000') {
this.dataSourceList = res.data
reslove()
}
}),
new Promise(async (reslove) => {
const res = await optionsApi.listByGroup('ClueType')
if (res.code === '00000') {
this.dataTypeList = res.data
reslove()
}
}),
])
},