From 2d0bac9d1b7bd393a8b1eae5642625cfe3dd56c6 Mon Sep 17 00:00:00 2001 From: taoshihan <630892807@qq.com> Date: Wed, 10 May 2023 17:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/chat-main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/chat-main.js b/static/js/chat-main.js index 28854eb..eca2fec 100644 --- a/static/js/chat-main.js +++ b/static/js/chat-main.js @@ -659,7 +659,13 @@ var app=new Vue({ type: 'error' }); }else{ - _this.messageContent+='file[/' + res.result.path + ']'; + var data=JSON.stringify({ + name:res.result.name, + ext:res.result.ext, + size:res.result.size, + path:'/' + res.result.path, + }) + _this.messageContent+='attachment['+data+']'; _this.chatToUser(); } },