fix: back button behaviour in preview (#1573)

pull/1596/head^2
niubility000 2021-10-12 19:09:05 +08:00 committed by GitHub
parent b6a51bed51
commit deabc80fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {