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

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

View File

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