!402 修复数据权限无法回显的问题

Merge pull request !402 from moon69/master
This commit is contained in:
芋道源码
2024-03-30 07:50:38 +00:00
committed by Gitee

View File

@ -102,6 +102,9 @@ const open = async (row: RoleApi.RoleVO) => {
formData.name = row.name
formData.code = row.code
formData.dataScope = row.dataScope
await nextTick()
// 需要在 DOM 渲染完成后,再设置选中状态
row.dataScopeDeptIds?.forEach((deptId: number) => {
treeRef.value.setChecked(deptId, true, false)
})