From de024de84390494a4ee3d5da8a376fb492d17f5c Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 16 Mar 2023 19:14:53 +0800 Subject: [PATCH] =?UTF-8?q?CN-749=20fix:=20axios.all=E8=BF=98=E5=8E=9F?= =?UTF-8?q?=E4=B8=BAPromise.all?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/linkMonitor/LinkBlock.vue | 2 +- src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/charts2/charts/linkMonitor/LinkBlock.vue b/src/views/charts2/charts/linkMonitor/LinkBlock.vue index 2db991e1..945822b6 100644 --- a/src/views/charts2/charts/linkMonitor/LinkBlock.vue +++ b/src/views/charts2/charts/linkMonitor/LinkBlock.vue @@ -187,7 +187,7 @@ export default { this.errorMsg2 = this.errorMsgHandler(e) }) - axios.all([dataRequest, nextHopRequest]).then(response => { + Promise.all([dataRequest, nextHopRequest]).then(response => { if (response[0] && response[1]) { const res = [] res[0] = response[0].data diff --git a/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue b/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue index 79ce611d..80db404f 100644 --- a/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue +++ b/src/views/charts2/charts/linkMonitor/LinkDirectionGrid.vue @@ -68,7 +68,7 @@ export default { }) this.toggleLoading(true) - axios.all([dataRequest, nextHopRequest]).then(response => { + Promise.all([dataRequest, nextHopRequest]).then(response => { if (response[0] && response[1]) { const res = [] res[0] = response[0].data