1. 重命名 DataGrid 为 MessageTable,增加可读性

2. 调整素材管理,读取 API 接口
This commit is contained in:
YunaiV
2023-04-15 08:42:52 +08:00
parent a5a8773972
commit 48c7b58b03
5 changed files with 15 additions and 14 deletions

View File

@ -17,10 +17,6 @@ const emit = defineEmits<{
(e: 'change', id?: number, name?: string): void
}>()
onMounted(() => {
handleQuery()
})
const handleQuery = async () => {
accountList.value = await MpAccountApi.getSimpleAccountList()
// 默认选中第一个
@ -33,4 +29,9 @@ const handleQuery = async () => {
const onChanged = () => {
emit('change', account.id, account.name)
}
/** 初始化 */
onMounted(() => {
handleQuery()
})
</script>