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