素材云完善切换报错问题
This commit is contained in:
@@ -622,4 +622,8 @@ export async function uploadImage(file: File): Promise<{ url: string; filename:
|
||||
if (!res.ok) throw new Error('图片上传失败');
|
||||
const data = await res.json();
|
||||
return { url: data.url, filename: data.filename };
|
||||
}
|
||||
}
|
||||
|
||||
export async function getFields(): Promise<any> {
|
||||
return api.get('/material-consumption/fields');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user