Promise.all Promise 返回多个promise对象
const data1 = function1({ id: "" }); const data2 = function2({ deptId: ""}); Promise.all([data1, data2]).then((res) => { console.log(res); };
const data1 = function1({ id: "" }); const data2 = function2({ deptId: ""}); Promise.all([data1, data2]).then((res) => { console.log(res); };