style: 🌈 add more readable for open

This commit is contained in:
AhJindeg 2024-04-05 13:51:27 +08:00
parent 7b84ddd358
commit db4795744e

View File

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