소스 검색

1.修复销售端员工管理无法删除员工问题

jzp 23 시간 전
부모
커밋
c4ee3c26c7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/company/companyUser/index.vue

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

@@ -1422,7 +1422,8 @@ export default {
     /** 删除按钮操作 */
     handleDelete(row) {
 
-      const userIds = row.userId || this.ids;
+      // 确保 userIds 始终是数组
+      const userIds = row.userId ? [row.userId] : this.ids;
 
       // 筛选出 userType 为 '00' 的 userId
       const excludedUserIds = this.userList