perf: 🎈 add await for nextTick()
This commit is contained in:
parent
c048dcf02a
commit
7b84ddd358
@ -102,8 +102,8 @@ 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
|
||||||
nextTick((): void => {
|
await nextTick((): void => {
|
||||||
row.dataScopeDeptIds?.forEach((deptId: number) => {
|
row.dataScopeDeptIds?.forEach((deptId: number): void => {
|
||||||
treeRef.value.setChecked(deptId, true, false)
|
treeRef.value.setChecked(deptId, true, false)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user