fix: 🐛 修复因接口调整而影响的调用页面的问题

This commit is contained in:
hxr
2024-05-04 13:15:06 +08:00
parent 088bc5e48f
commit 425841ad45
6 changed files with 13 additions and 14 deletions

View File

@@ -33,8 +33,8 @@ const imgUrl = useVModel(props, "modelValue", emit);
* @param options
*/
async function uploadFile(options: UploadRequestOptions): Promise<any> {
const { data: fileInfo } = await FileAPI.update(options.file);
imgUrl.value = fileInfo.url;
const data = await FileAPI.upload(options.file);
imgUrl.value = data.url;
}
/**