From b208af3eb4d3fc6041347ddb06c6907f66768d4c Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 22 Sep 2021 17:32:50 +0800 Subject: [PATCH] Add files via upload --- frontend/src/views/files/Preview.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 013e526f..84ad3a16 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -241,11 +241,11 @@ export default { }, prev() { this.hoverNav = false; - this.$router.push({ path: this.previousLink }); + this.$router.replace({ path: this.previousLink }); }, next() { this.hoverNav = false; - this.$router.push({ path: this.nextLink }); + this.$router.replace({ path: this.nextLink }); }, key(event) { if (this.show !== null) { @@ -341,7 +341,7 @@ export default { this.$store.commit("updateRequest", {}); let uri = url.removeLastDir(this.$route.path) + "/"; - this.$router.push({ path: uri }); + this.$router.replace({ path: uri }); }, download() { api.download(null, this.$route.path);