async handleOptions() {
const [cur, sal, inv, fin] = await Promise.all([
this.getOptions(1),
this.getOptions(2),
this.getOptions(3),
this.getOptions(4),
])
console.log(cur)
console.log(sal)
console.log(inv)
console.log(fin)
},
async getOptions(unitType) {
const { results } = await commonSQL({
input_param: {unit_type: unitType}
})
},
循环请求接口
于 2024-07-23 09:58:14 首次发布