From 3f5f91816374a5ab5a8e224765b1edb1212b08ef Mon Sep 17 00:00:00 2001 From: manzhenhua Date: Tue, 12 May 2020 22:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9upload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/upload/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/index.js b/components/upload/index.js index 5aab210..1244817 100644 --- a/components/upload/index.js +++ b/components/upload/index.js @@ -112,7 +112,7 @@ class UploadCom extends React.Component { return file; } //处理保存到后台的数据 - const url = `${item.domain ? 'https://' + item.domain : CDN_HOST}/${item.value}`; + const url = item.url || `${item.domain ? 'https://' + item.domain : CDN_HOST}/${item.value}`; return { ...value, uid: value.value, -- 2.21.0