Skip to content

Commit

Permalink
fix: 修复组件因数据未获取时导致未渲染,感谢@West
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jun 25, 2024
1 parent d339377 commit 74e34a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/setting/config/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@
isCreateNode.value = false
const response = await config.getConfigGroupList()
configGroupData.value = response.data
configGroupData.value.map(async item => {
await Promise.all(configGroupData.value.map(async item => {
formArray.value[item.id] = {}
optionsArray.value[item.id] = []
await getConfigData(item.id)
})
}))
isCreateNode.value = true
}

Expand Down

1 comment on commit 74e34a6

@westng
Copy link

@westng westng commented on 74e34a6 Jun 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ma-form 上面还是需要加v-if="isCreateNode",不然还是显示不出来!

Please sign in to comment.