CN-749 fix: axios.all还原为Promise.all
This commit is contained in:
@@ -187,7 +187,7 @@ export default {
|
|||||||
this.errorMsg2 = this.errorMsgHandler(e)
|
this.errorMsg2 = this.errorMsgHandler(e)
|
||||||
})
|
})
|
||||||
|
|
||||||
axios.all([dataRequest, nextHopRequest]).then(response => {
|
Promise.all([dataRequest, nextHopRequest]).then(response => {
|
||||||
if (response[0] && response[1]) {
|
if (response[0] && response[1]) {
|
||||||
const res = []
|
const res = []
|
||||||
res[0] = response[0].data
|
res[0] = response[0].data
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.toggleLoading(true)
|
this.toggleLoading(true)
|
||||||
|
|
||||||
axios.all([dataRequest, nextHopRequest]).then(response => {
|
Promise.all([dataRequest, nextHopRequest]).then(response => {
|
||||||
if (response[0] && response[1]) {
|
if (response[0] && response[1]) {
|
||||||
const res = []
|
const res = []
|
||||||
res[0] = response[0].data
|
res[0] = response[0].data
|
||||||
|
|||||||
Reference in New Issue
Block a user