This commit is contained in:
niubility000 2021-09-21 23:43:34 +08:00 committed by GitHub
parent ed827184bb
commit 6f3e16017f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,11 @@ export default {
this.addSelected(this.index);
},
open: function () {
this.$router.push({ path: this.url });
if (this.isDir) {
this.$router.push({ path: this.url });
} else {
this.$router.replace({ path: this.url });
}
},
},
};