From d08a1c61c08d2dca2748de27bc91df595c8fd923 Mon Sep 17 00:00:00 2001 From: shishengjie Date: Tue, 15 Oct 2019 17:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=85=A7=E7=89=87=E7=9B=B8?= =?UTF-8?q?=E5=90=8C=E5=90=8D=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/AttachmentManagement.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/ebiz/sale/AttachmentManagement.vue b/src/views/ebiz/sale/AttachmentManagement.vue index 78aa6c13d..ce12aea0a 100644 --- a/src/views/ebiz/sale/AttachmentManagement.vue +++ b/src/views/ebiz/sale/AttachmentManagement.vue @@ -599,9 +599,8 @@ export default { let that = this // console.log(type) // 此时可以自行将文件上传至服务器 - // console.log(file) that.file = file.content - that.imgName = file.file.name + that.imgName = new Date().getTime() + file.file.name that.uploadImg() }, @@ -631,6 +630,8 @@ export default { message: '加载中……' }) let formdata = new FormData() + console.log('file-----------------', that.file) + console.log('name-----------------', that.imgName) formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName)) uploadImg(formdata).then(res => { // console.log(res)