From ed827184bbe4015643bbb6d69bdc1dc20ef32667 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Tue, 21 Sep 2021 23:42:50 +0800 Subject: [PATCH] 1-2 --- 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) {