fix: import dashboard templates (#363)

This commit is contained in:
Fine0830
2024-01-16 18:23:55 +08:00
committed by GitHub
parent 5061b19cf7
commit a46b91d1cf
3 changed files with 22 additions and 13 deletions

View File

@@ -429,8 +429,7 @@ export const dashboardStore = defineStore({
d.layer === this.currentDashboard?.layer,
);
if (index > -1) {
const { t } = useI18n();
ElMessage.error(t("nameError"));
ElMessage.error("The dashboard name cannot be duplicate");
return;
}
res = await graphql.query("addNewTemplate").params({ setting: { configuration: JSON.stringify(c) } });