From 09daf23d053e76f558090c9e1cc714e80c26ab36 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 22 Sep 2021 17:34:49 +0800 Subject: [PATCH] Add files via upload --- frontend/src/components/files/ListingItem.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/files/ListingItem.vue b/frontend/src/components/files/ListingItem.vue index 642e5454..a13c85a9 100644 --- a/frontend/src/components/files/ListingItem.vue +++ b/frontend/src/components/files/ListingItem.vue @@ -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 }); + } }, }, };