Parcourir la source

1.恢复删除按钮功能

jzp il y a 2 jours
Parent
commit
8db800a5f0
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/views/company/companyUser/index.vue

+ 4 - 1
src/views/company/companyUser/index.vue

@@ -1423,7 +1423,10 @@ export default {
     handleDelete(row) {
 
       // 确保 userIds 始终是数组
-      const userIds = row.userId ? [row.userId] : this.ids;
+      let userIds = row.userId || this.ids;
+      if (!Array.isArray(userIds)) {
+        userIds = [userIds];
+      }
 
       // 筛选出 userType 为 '00' 的 userId
       const excludedUserIds = this.userList