重构
This commit is contained in:
@ -125,6 +125,12 @@ export default {
|
||||
this.totalChargedCap=totalChargedCap
|
||||
this.totalDisChargedCap=totalDisChargedCap
|
||||
this.efficiency=efficiency
|
||||
}).catch(() => {
|
||||
this.setOption([], '')
|
||||
this.totalChargedCap=''
|
||||
this.totalDisChargedCap=''
|
||||
this.efficiency=''
|
||||
// 错误提示由全局请求拦截器处理,这里兜底避免出现 Uncaught (in promise)
|
||||
}).finally(() => {
|
||||
this.loading=false;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user