fix: 文件右键打开失效
This commit is contained in:
parent
33f3c9acbf
commit
bba28d6b57
@ -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({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user