素材云完善切换报错问题

This commit is contained in:
Lrd
2026-06-25 11:42:47 +08:00
parent 87e412ef74
commit 586bce2aeb
2 changed files with 29 additions and 11 deletions
+5 -1
View File
@@ -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');
}