瀏覽代碼

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

jzp 1 天之前
父節點
當前提交
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