Browse Source

fix:修改多选删除bug

wangsisi 4 months ago
parent
commit
d2a219bac8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/authentic/index.vue

+ 1 - 1
src/views/authentic/index.vue

@@ -477,8 +477,8 @@ function updateFormInline(newData, name) {
 
 // 删除地块
 const handleDelete = () => {
-  if (!mapData.curPointData.id) return ElMessage("请选择地块");
   const id = mapData.selectPointArr.map((item) => item.values_.id);
+  if (id.length<0) return ElMessage("请选择地块");
   ElMessageBox.confirm("您确定删除该地块吗?", "提示", {
     confirmButtonText: "确认",
     cancelButtonText: "取消",