修复公众号-素材管理 上传时缺少accountId参数

Signed-off-by: Evol郑天 <jpevol@163.com>
This commit is contained in:
Evol郑天
2023-11-29 01:24:42 +00:00
committed by YunaiV
parent 7748704639
commit 3009c04d0a
4 changed files with 15 additions and 3 deletions

View File

@@ -33,6 +33,8 @@ const message = useMessage()
const props = defineProps<{ type: UploadType }>()
const accountId = inject<number>('accountId')
const fileList = ref<UploadUserFile[]>([])
const emit = defineEmits<{
(e: 'uploaded', v: void)
@@ -41,7 +43,8 @@ const emit = defineEmits<{
const uploadData: UploadData = reactive({
type: UploadType.Image,
title: '',
introduction: ''
introduction: '',
accountId: accountId!
})
/** 上传前检查 */