vue中Promise.all的通常寫法

Promise.all([ findNoteFilesByPid(params), // 請求的接口1 getTags(params1) // 請求的接口2 ]).then((res) => { //返回的res是一個數組 [{code: 200,data: null, msg: ''},{code: 200,data: null, msg: ''}] if (res[0].cod
相關文章
相關標籤/搜索