mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-11 23:23:43 +00:00
REVIEW 公众号选择的下拉框
This commit is contained in:
@@ -19,13 +19,12 @@ const emit = defineEmits<{
|
||||
(e: 'change', id: number | undefined): void
|
||||
}>()
|
||||
|
||||
onMounted(async () => {
|
||||
onMounted(() => {
|
||||
handleQuery()
|
||||
})
|
||||
|
||||
const handleQuery = async () => {
|
||||
const data = await MpAccountApi.getSimpleAccountList()
|
||||
accountList.value = data
|
||||
accountList.value = await MpAccountApi.getSimpleAccountList()
|
||||
// 默认选中第一个
|
||||
if (accountList.value.length > 0) {
|
||||
accountId.value = accountList.value[0].id
|
||||
|
||||
Reference in New Issue
Block a user