Prechádzať zdrojové kódy

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

jzp 1 týždeň pred
rodič
commit
ec0465d32e
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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