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

This commit is contained in:
moon69 2024-03-10 11:59:49 +08:00
parent 0230a4af01
commit 4c0a5e8c30

View File

@ -103,12 +103,11 @@ const open = async (row: RoleApi.RoleVO) => {
formData.code = row.code
formData.dataScope = row.dataScope
await nextTick()
// DOM
nextTick(() => {
row.dataScopeDeptIds?.forEach((deptId: number) => {
treeRef.value.setChecked(deptId, true, false)
})
})
}
defineExpose({ open }) // open