Skip to content

Commit 02af138

Browse files
YunaiVgitee-org
authored andcommitted
!402 修复数据权限无法回显的问题
Merge pull request !402 from moon69/master
2 parents b4677c4 + 4c0a5e8 commit 02af138

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/views/system/role/RoleDataPermissionForm.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ const open = async (row: RoleApi.RoleVO) => {
102102
formData.name = row.name
103103
formData.code = row.code
104104
formData.dataScope = row.dataScope
105+
106+
await nextTick()
107+
// 需要在 DOM 渲染完成后,再设置选中状态
105108
row.dataScopeDeptIds?.forEach((deptId: number) => {
106109
treeRef.value.setChecked(deptId, true, false)
107110
})

0 commit comments

Comments
 (0)