From deabc80fd7670983039dfcd29531b45002ca5d9e Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Tue, 12 Oct 2021 19:09:05 +0800 Subject: [PATCH] fix: back button behaviour in preview (#1573) --- frontend/src/views/files/Preview.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 013e526f..57c365e8 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) {