fix:修改BUG
dashboard模块 1.连续点击dashboard panel页面搜素按钮,界面提示错误,没有显示错误内容
This commit is contained in:
@@ -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());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user