fix: 修复role新增编辑bug, 调整列表页

This commit is contained in:
lilinyuan
2024-03-29 14:06:47 +08:00
parent 51cf038bed
commit 47a4c311af
2 changed files with 9 additions and 5 deletions

View File

@@ -154,7 +154,11 @@ const filterMenu = (value, data) => {
}
const checkChange = (data) => {
return menuTree.value.getCheckedKeys()
// 获取已选
const checkedKeys = menuTree.value.getCheckedKeys()
// 获取半选
const halfCheckedKeys = menuTree.value.getHalfCheckedKeys()
return [...checkedKeys, ...halfCheckedKeys]
}
const checkBoxChange = (val) => {