This commit is contained in:
Qiuxia Fan 2022-03-18 15:44:03 +08:00
parent ea81614aaf
commit 442a24eedc

View File

@ -155,7 +155,7 @@ async function importTemplates(event: any) {
const { layer, name, entity } = item.configuration;
const index = dashboardStore.dashboards.findIndex(
(d: DashboardItem) =>
d.name === name && d.entity === entity && d.layer === layer
d.name === name && d.entity === entity && d.layer === layer && !item.id
);
if (index > -1) {
return ElMessage.error("The dashboard name cannot be duplicate.");