Commit 6a179b49 by fukai

补充快照加载失败处理

parent 231b45ca
......@@ -137,7 +137,12 @@ export default {
return
const loading = this.loading("快照数据加载中")
let data = await Api.post("display/" + inr)
Utils.copyValueFromVO(this.model, JSON.parse(data.data))
if(data.data)
{
Utils.copyValueFromVO(this.model, JSON.parse(data.data))
}else{
this.$notify.error({title: '错误',message: '快照文件加载失败!'});
}
loading.close()
},
async executeNotify(params) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment