fix: 🐛 修复因接口调整而影响的调用页面的问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user