fix: 将之前报错提示的msg改为message
This commit is contained in:
@@ -225,18 +225,16 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.isLinkNoData = false
|
this.isLinkNoData = false
|
||||||
this.isNextShowError = true
|
this.isNextShowError = true
|
||||||
// todo 此时返回的是msg,后期记得改为message
|
this.nextErrorMsg = res[1].message
|
||||||
this.nextErrorMsg = res[1].msg
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|
||||||
this.isLinkShowError = true
|
this.isLinkShowError = true
|
||||||
// todo 此时返回的是msg,后期记得改为message
|
this.linkErrorMsg = e[0].message
|
||||||
this.linkErrorMsg = e[0].msg
|
|
||||||
|
|
||||||
this.isNextShowError = true
|
this.isNextShowError = true
|
||||||
this.nextErrorMsg = e[1].msg
|
this.nextErrorMsg = e[1].message
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.toggleLoading(false)
|
this.toggleLoading(false)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -277,9 +277,7 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
// todo 此时返回的是msg,后期记得改
|
this.errorMsg = res.message
|
||||||
this.errorMsg = res.msg
|
|
||||||
// this.errorMsg = res.message
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
@@ -475,6 +473,9 @@ export default {
|
|||||||
beforeUnmount () {
|
beforeUnmount () {
|
||||||
clearTimeout(this.timer)
|
clearTimeout(this.timer)
|
||||||
window.removeEventListener('resize', this.resize)
|
window.removeEventListener('resize', this.resize)
|
||||||
|
this.myChart = null
|
||||||
|
this.chartOption = null
|
||||||
|
this.unitConvert = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -151,9 +151,7 @@ export default {
|
|||||||
this.linkTrafficListData.npmScore = computeScore(data)
|
this.linkTrafficListData.npmScore = computeScore(data)
|
||||||
} else {
|
} else {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
// todo 此时返回的是msg,后期记得改
|
this.errorMsg = res.message
|
||||||
this.errorMsg = res.msg
|
|
||||||
// this.errorMsg = res.message
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|||||||
@@ -242,7 +242,6 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
// todo 此处目前返回字段为msg,后续字段会修改为message
|
|
||||||
msg = msg + ',' + r.message
|
msg = msg + ',' + r.message
|
||||||
if (msg.indexOf(',') === 0) {
|
if (msg.indexOf(',') === 0) {
|
||||||
msg = msg.substring(1, msg.length)
|
msg = msg.substring(1, msg.length)
|
||||||
|
|||||||
@@ -123,7 +123,6 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
// todo 目前返回的字段为msg,以后将改为message
|
|
||||||
this.errorMsg = r.message
|
this.errorMsg = r.message
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -142,7 +142,6 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.showError = true
|
this.showError = true
|
||||||
// todo 此处目前返回字段为msg,后续字段会修改为message
|
|
||||||
msg = msg + ',' + r.message
|
msg = msg + ',' + r.message
|
||||||
if (msg.indexOf(',') === 0) {
|
if (msg.indexOf(',') === 0) {
|
||||||
msg = msg.substring(1, msg.length)
|
msg = msg.substring(1, msg.length)
|
||||||
|
|||||||
Reference in New Issue
Block a user