getmytask() { showFullScreenLoading() const param={ // "status": "All/Going/Plan/Delay/Finish", "status": "All", "user_id": store.state.gigi.currentUser.userId } const param2={ "status": "Going ", "user_id": store.state.gigi.currentUser.userId } const param3={ "status": "Plan", "user_id": store.state.gigi.currentUser.userId } const param4={ "status": "Delay", "user_id": store.state.gigi.currentUser.userId } const param5 = { "status": "Finish", "user_id": store.state.gigi.currentUser.userId } axios.all([http.post("/Tasks/QxMyTaskByStatus", param), http.post("/Tasks/QxMyTaskByStatus", param2), http.post("/Tasks/QxMyTaskByStatus", param3), http.post("/Tasks/QxMyTaskByStatus", param4), http.post("/Tasks/QxMyTaskByStatus", param5)]).then(axios.spread(function (res1, res2,res3,res4,res5) { tryHideFullScreenLoading() } )) }
标签:status,axios,const,userId,接口,并发,state,gigi,id From: https://www.cnblogs.com/laroux/p/16731447.html