🐛Fix image file actions does not work #100

This commit is contained in:
Aicirou 2020-07-07 22:45:03 +08:00
parent cc5ab9ebd4
commit 6afc76f974

View File

@ -271,7 +271,7 @@ export default {
});
return;
}
if (file.mimeType.startsWith("image/")) {
if (file.mimeType.startsWith("image/") && target === "view") {
this.viewer = true;
this.$nextTick(() => {
let index = this.images.findIndex((item) => item.path === file.path);