From 87c11cacaa5835efa45bf65b19f43334926d1c3f Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 15 Oct 2021 20:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80pickupFile2Server,=20pickupFi?= =?UTF-8?q?le2Cloud,=20pickupFile=E7=9A=84=E8=BF=94=E5=9B=9E=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E4=B8=BA=20{=20=5Fstate,=20=3FfileUrl,=20...rest=20}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ucStoryEditor/ucStoryEditor.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ucStoryEditor/ucStoryEditor.vue b/ucStoryEditor/ucStoryEditor.vue index 1cc406c..05c408d 100644 --- a/ucStoryEditor/ucStoryEditor.vue +++ b/ucStoryEditor/ucStoryEditor.vue @@ -53,18 +53,18 @@ export default { if (!Array.isArray(this.storyContent)) { this.storyContent = [] } - let { _state, fileID, requestId } = await this.$T.pickupFile2Cloud({ mediaType: 'image' }) + let { _state, fileUrl, ...rest } = await this.$T.pickupFile2Cloud({ mediaType: 'image' }) if (_state === 'SUCCESS') { - this.storyContent.push({ image: fileID }) + this.storyContent.push({ image: fileUrl }) } }, async addVideo() { if (!Array.isArray(this.storyContent)) { this.storyContent = [] } - let { _state, fileID, requestId } = await this.$T.pickupFile2Cloud({ mediaType: 'video' }) + let { _state, fileUrl, ...rest } = await this.$T.pickupFile2Cloud({ mediaType: 'video' }) if (_state === 'SUCCESS') { - this.storyContent.push({ video: fileID }) + this.storyContent.push({ video: fileUrl }) } }, deleteSection(index) {