mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-23 23:35:06 +08:00
1. 重命名 DataGrid 为 MessageTable,增加可读性
2. 调整素材管理,读取 API 接口
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user