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

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.code = row.code
formData.dataScope = row.dataScope formData.dataScope = row.dataScope
await nextTick()
// DOM // DOM
nextTick(() => {
row.dataScopeDeptIds?.forEach((deptId: number) => { row.dataScopeDeptIds?.forEach((deptId: number) => {
treeRef.value.setChecked(deptId, true, false) treeRef.value.setChecked(deptId, true, false)
}) })
})
} }
defineExpose({ open }) // open defineExpose({ open }) // open