From 1b5c187a4714f1646b4235e0ee13b59051ceac89 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Thu, 9 Mar 2023 23:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=B0=8F=E8=93=9D=E9=B8=9F=E9=83=A8=E5=88=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/tools.js b/apps/tools.js index 51a2043..29cc90f 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -454,6 +454,11 @@ export class tools extends plugin { ); } } + // 如果没有图片直接返回走 + if (task.length === 0) { + return true; + } + // 下面是有图片的情况 let images = []; let path = []; // 获取所有图片的promise