菜单表单

This commit is contained in:
Gary Fu
2024-01-07 16:13:02 +08:00
parent 8bd8cbe46a
commit e58982688c
3 changed files with 14 additions and 5 deletions

View File

@@ -24,9 +24,10 @@ const loadMenu = async () => {
}
}
onMounted(async () => {
const menus = await loadAndParseMenus()
selectMenus.value = menus
onMounted(() => {
loadAndParseMenus().then(menus => {
selectMenus.value = menus
})
loadMenu()
})