Explorar o código

批量删除BUG

枫叶秋林 %!s(int64=2) %!d(string=hai) anos
pai
achega
8124596de9
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/views/user/userlist.vue

+ 3 - 0
src/views/user/userlist.vue

@@ -163,6 +163,9 @@ const handleDeletes = (row: User[]) => {
         })
         })
       ).data
       ).data
       ElMessage.success(data.msg)
       ElMessage.success(data.msg)
+      tableData.value = tableData.value.filter(
+        (item) => item.authId !== item.authId
+      )
     })
     })
   })
   })
 }
 }