fix: 将之前报错提示的msg改为message

This commit is contained in:
刘洪洪
2022-11-28 18:29:46 +08:00
parent 2b3e5ca360
commit 4cc7891008
6 changed files with 8 additions and 14 deletions

View File

@@ -225,18 +225,16 @@ export default {
} else {
this.isLinkNoData = false
this.isNextShowError = true
// todo 此时返回的是msg后期记得改为message
this.nextErrorMsg = res[1].msg
this.nextErrorMsg = res[1].message
}
}).catch(e => {
console.error(e)
this.isLinkShowError = true
// todo 此时返回的是msg后期记得改为message
this.linkErrorMsg = e[0].msg
this.linkErrorMsg = e[0].message
this.isNextShowError = true
this.nextErrorMsg = e[1].msg
this.nextErrorMsg = e[1].message
}).finally(() => {
this.toggleLoading(false)
})

View File

@@ -277,9 +277,7 @@ export default {
})
} else {
this.showError = true
// todo 此时返回的是msg后期记得改
this.errorMsg = res.msg
// this.errorMsg = res.message
this.errorMsg = res.message
}
}).catch(e => {
console.error(e)
@@ -475,6 +473,9 @@ export default {
beforeUnmount () {
clearTimeout(this.timer)
window.removeEventListener('resize', this.resize)
this.myChart = null
this.chartOption = null
this.unitConvert = null
}
}
</script>

View File

@@ -151,9 +151,7 @@ export default {
this.linkTrafficListData.npmScore = computeScore(data)
} else {
this.showError = true
// todo 此时返回的是msg后期记得改
this.errorMsg = res.msg
// this.errorMsg = res.message
this.errorMsg = res.message
}
}).catch(e => {
console.error(e)

View File

@@ -242,7 +242,6 @@ export default {
})
} else {
this.showError = true
// todo 此处目前返回字段为msg后续字段会修改为message
msg = msg + ',' + r.message
if (msg.indexOf(',') === 0) {
msg = msg.substring(1, msg.length)

View File

@@ -123,7 +123,6 @@ export default {
})
} else {
this.showError = true
// todo 目前返回的字段为msg以后将改为message
this.errorMsg = r.message
}
})

View File

@@ -142,7 +142,6 @@ export default {
})
} else {
this.showError = true
// todo 此处目前返回字段为msg后续字段会修改为message
msg = msg + ',' + r.message
if (msg.indexOf(',') === 0) {
msg = msg.substring(1, msg.length)