fix: 文件右键打开失效

This commit is contained in:
kuaifan 2022-01-27 23:17:41 +08:00
parent 33f3c9acbf
commit bba28d6b57

View File

@ -774,8 +774,8 @@ export default {
}) })
}, },
openFile(item) { openFile(item, checkMenuVisible = true) {
if (this.contextMenuVisible) { if (checkMenuVisible && this.contextMenuVisible) {
return; return;
} }
if (this.fileList.findIndex((file) => file._edit === true) > -1) { if (this.fileList.findIndex((file) => file._edit === true) > -1) {
@ -841,7 +841,7 @@ export default {
dropFile(item, command) { dropFile(item, command) {
switch (command) { switch (command) {
case 'open': case 'open':
this.openFile(item); this.openFile(item, false);
break; break;
case 'rename': case 'rename':
@ -911,7 +911,6 @@ export default {
case 'download': case 'download':
if (!item.ext) { if (!item.ext) {
$A.modalError("此文件不支持下载");
return; return;
} }
$A.modalConfirm({ $A.modalConfirm({