|
|
@@ -115,6 +115,8 @@ const handleAfterRead = async (file: any, item: UploadItem, index: number) => {
|
|
|
if (res.code === 0 && res.data?.url) {
|
|
|
const baseUrl = import.meta.env.VITE_APP_URL
|
|
|
const fullUrl = res.data.url.startsWith('http') ? res.data.url : `${baseUrl}${res.data.url}`
|
|
|
+ console.log('fullUrl', fullUrl)
|
|
|
+
|
|
|
target.fileList = [{ url: fullUrl, status: 'done', fileId: res.data.fileId }]
|
|
|
showToast(`${item.label} 上传成功`)
|
|
|
// 调用 OCR 接口(传原始文件 + side)
|