feat: 新增上传个人头像

This commit is contained in:
2024-04-27 19:21:44 +08:00
parent 5f4ea2eb0b
commit c938028d8d
12 changed files with 222 additions and 131 deletions

View File

@@ -179,6 +179,7 @@ const getMenuAllCheckedKeys = () => {
// 获取半选中的菜单
const halfCheckedNodes = menuTreeRef.value?.getHalfCheckedNodes()
const halfCheckedKeys = halfCheckedNodes.map((item: TreeNodeData) => item.key)
// eslint-disable-next-line prefer-spread
checkedKeys.unshift.apply(checkedKeys, halfCheckedKeys)
return checkedKeys
}
@@ -194,6 +195,7 @@ const getDeptAllCheckedKeys = () => {
// 获取半选中的部门
const halfCheckedNodes = deptTreeRef.value?.getHalfCheckedNodes()
const halfCheckedKeys = halfCheckedNodes.map((item: TreeNodeData) => item.key)
// eslint-disable-next-line prefer-spread
checkedKeys.unshift.apply(checkedKeys, halfCheckedKeys)
return checkedKeys
}