mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 17:44:46 +00:00
fix: remove duplicate query message (#231)
This commit is contained in:
parent
1877776720
commit
4613149759
@ -423,13 +423,15 @@ export const dashboardStore = defineStore({
|
|||||||
res = await graphql.query("addNewTemplate").params({ setting: { configuration: JSON.stringify(c) } });
|
res = await graphql.query("addNewTemplate").params({ setting: { configuration: JSON.stringify(c) } });
|
||||||
|
|
||||||
json = res.data.data.addTemplate;
|
json = res.data.data.addTemplate;
|
||||||
|
if (!json.status) {
|
||||||
|
ElMessage.error(json.message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (res.data.errors || res.errors) {
|
if (res.data.errors || res.errors) {
|
||||||
ElMessage.error(res.data.errors);
|
ElMessage.error(res.data.errors);
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
if (!json.status) {
|
if (!json.status) {
|
||||||
ElMessage.error(json.message);
|
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
if (!this.currentDashboard.id) {
|
if (!this.currentDashboard.id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user