Browse Source

1.修复员工管理无法删除账号问题

jzp 1 week ago
parent
commit
ec0465d32e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/company/companyUser/index.vue

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

@@ -1422,7 +1422,10 @@ export default {
     /** 删除按钮操作 */
     handleDelete(row) {
 
-      const userIds = row.userId || this.ids;
+      let userIds = row.userId || this.ids;
+      if (!Array.isArray(userIds)) {
+        userIds = [userIds];
+      }
 
       // 筛选出 userType 为 '00' 的 userId
       const excludedUserIds = this.userList