From bba28d6b57f8d86f866cd23c4c67850a473e0650 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 27 Jan 2022 23:17:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E4=BB=B6=E5=8F=B3=E9=94=AE?= =?UTF-8?q?=E6=89=93=E5=BC=80=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/file.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/pages/manage/file.vue b/resources/assets/js/pages/manage/file.vue index 42752dbb..2da978b3 100644 --- a/resources/assets/js/pages/manage/file.vue +++ b/resources/assets/js/pages/manage/file.vue @@ -774,8 +774,8 @@ export default { }) }, - openFile(item) { - if (this.contextMenuVisible) { + openFile(item, checkMenuVisible = true) { + if (checkMenuVisible && this.contextMenuVisible) { return; } if (this.fileList.findIndex((file) => file._edit === true) > -1) { @@ -841,7 +841,7 @@ export default { dropFile(item, command) { switch (command) { case 'open': - this.openFile(item); + this.openFile(item, false); break; case 'rename': @@ -911,7 +911,6 @@ export default { case 'download': if (!item.ext) { - $A.modalError("此文件不支持下载"); return; } $A.modalConfirm({