feat: 功能优化
This commit is contained in:
@@ -82,7 +82,10 @@ export async function uploadAndIdentifyVideo(file) {
|
||||
hideLoading()
|
||||
|
||||
showLoading('正在上传视频...')
|
||||
const uploadRes = await MaterialService.uploadFile(file, 'video', coverBase64)
|
||||
|
||||
// 使用useUpload Hook(注意:这里需要在组件中使用,这里先用MaterialService)
|
||||
// TODO: 在组件中集成useUpload Hook
|
||||
const uploadRes = await MaterialService.uploadFile(file, 'video', coverBase64, null, null)
|
||||
hideLoading()
|
||||
|
||||
if (uploadRes.code !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user