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

@@ -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>