Преглед изворни кода

1.恢复删除按钮功能

jzp пре 23 часа
родитељ
комит
8db800a5f0
1 измењених фајлова са 4 додато и 1 уклоњено
  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