From bf7f9cffaa7bff3a4f74e0f851c0318872ac355d Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Fri, 4 Aug 2023 19:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/fillion/components/uploads.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/fillion/components/uploads.js b/web/client/src/sections/fillion/components/uploads.js index 782fc311..1f6aa15b 100644 --- a/web/client/src/sections/fillion/components/uploads.js +++ b/web/client/src/sections/fillion/components/uploads.js @@ -20,7 +20,7 @@ class Uploads extends Component { } dealName = (uploaded) => { - console.log(uploaded) + let realName = uploaded.split('/')[2] let x1 = realName.split('.') let x2 = x1[0].split('_') @@ -31,6 +31,7 @@ class Uploads extends Component { setFileList = (value) => { let defaultFileList = []; defaultFileList = value.map((u, index) => { + // let fileUrl = `${this.ApiRoot}/${u.url}`; let fileUrl = `${u.url}`; return { uid: -index - 1, @@ -60,7 +61,8 @@ class Uploads extends Component { const setFileList = () => { let defaultFileList = []; defaultFileList = nextEditData.map((u, index) => { - let fileUrl = `${this.ApiRoot}/${u.storageUrl}`; + // let fileUrl = `${this.ApiRoot}/${u.storageUrl}`; + let fileUrl = `${u.storageUrl}`; return { uid: -index - 1, name: this.dealName(u.storageUrl), @@ -268,7 +270,7 @@ class Uploads extends Component { // } // return f // }) - console.log('fileList_:', fileList_); + return (