Commit db479574 by AhJindeg

style: 🌈 add more readable for open

parent 7b84ddd3
...@@ -102,11 +102,10 @@ const open = async (row: RoleApi.RoleVO) => { ...@@ -102,11 +102,10 @@ 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 方法,用于打开弹窗
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment