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

@@ -370,10 +370,7 @@ export default {
}
}).catch((error) => {
if (error) {
this.$message.error({
content: this.$t("tip.refreshLater"),//'Please refesh later',//请稍后刷新
duration: 3,
});
this.$message.error(error.toString());
}
});
});

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) {