Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jeecgboot-vue3中选择用户时,开启右侧列表后,在右侧列表中删除用户时,逻辑有问题 #424

Closed
1shengsuoai opened this issue Mar 24, 2023 · 1 comment

Comments

@1shengsuoai
Copy link

版本号:3.4.4
问题描述:jeecgboot-vue3中选择用户,开启右侧列表后,在右侧列表删除用户操作时,逻辑有问题,indexOf在checkedKeys中根本找不到对应的id索引,总是返回-1,截取时,则会从最后一个值截取,然后删除用户时,一直会从最后一个用户开始删除
截图&代码:

image
//删除已选择的信息
function handleDeleteSelected(record) {
checkedKeys.value = checkedKeys.value.splice(checkedKeys.value.indexOf(record['id']), 1);
selectRows.value = selectRows.value.filter((item) => item['id'] !== record['id']);
}

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@1298191366
Copy link

已修复,待新版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants