From 95dde5e4f18800320f551a56259ff863c8b1fc66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=92=83=E7=99=BD?= <18511759309@163.com> Date: Mon, 7 Jun 2021 13:46:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dist/index.html b/dist/index.html index 9111560..ad7cc3c 100644 --- a/dist/index.html +++ b/dist/index.html @@ -22,6 +22,17 @@ canAttachFile: true, onChange: function(res) { console.log(res); + }, + onUpload: function(fileList, callback) { + new Promise((res, rej) => { + setTimeout(() => { + res(fileList); + }, 2000); + }).then(res => { + callback( + "https://img2.baidu.com/it/u=3681880960,455182084&fm=26&fmt=auto&gp=0.jpg" + ); + }); } }); -- GitLab