fix:修改BUG
dashboard模块 1.连续点击dashboard panel页面搜素按钮,界面提示错误,没有显示错误内容
This commit is contained in:
@@ -370,10 +370,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
this.$message.error({
|
this.$message.error(error.toString());
|
||||||
content: this.$t("tip.refreshLater"),//'Please refesh later',//请稍后刷新
|
|
||||||
duration: 3,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -458,8 +458,21 @@
|
|||||||
this.$store.state.showPanel.id = 0;
|
this.$store.state.showPanel.id = 0;
|
||||||
this.$store.state.showPanel.name = '';
|
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) {
|
selectInterval(val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user