fix:修改BUG

dashboard模块
1.连续点击dashboard panel页面搜素按钮,界面提示错误,没有显示错误内容
This commit is contained in:
hanyuxia
2020-02-21 22:01:33 +08:00
parent 29179a94bb
commit bfbeb179c0
2 changed files with 15 additions and 5 deletions

View File

@@ -458,8 +458,21 @@
this.$store.state.showPanel.id = 0;
this.$store.state.showPanel.name = '';
}else {
if(response.msg){
this.$message.error(response.msg);
}else if(response.error){
this.$message.error(response.error);
}else {
this.$message.error(response);
}
}
})
}).catch((error) => {
//console.log('error................'+JSON.stringify(error));
if (error) {
this.$message.error(error.toString());
}
});
},
//定期刷新
selectInterval(val) {