From 0c9972b68aaee5ce0d536bb418ebcd2887012a28 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 29 六月 2020 14:35:47 +0800 Subject: [PATCH] 2020-06-29 --- src/tabviews/zshare/fileupload/index.jsx | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/tabviews/zshare/fileupload/index.jsx b/src/tabviews/zshare/fileupload/index.jsx index df7e480..23bf614 100644 --- a/src/tabviews/zshare/fileupload/index.jsx +++ b/src/tabviews/zshare/fileupload/index.jsx @@ -157,7 +157,10 @@ spark.append(e.target.result) params.file.fileMd5 = spark.end() // 璁$畻鏁翠釜鏂囦欢鐨刦ileMd5 - Api.getFilePreUpload({fileMd5: params.file.fileMd5}).then(res => { + let _param = new FormData() + _param.append('fileMd5', params.file.fileMd5) + + Api.getFilePreUpload(_param).then(res => { if (res.status && res.urlPath) { this.onUpdate(res.urlPath) this.setState({ -- Gitblit v1.8.0