From 0c2758baf1760e0e17866b4bd1bbe3066a555d7c Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 22 Sep 2021 20:24:13 +0800 Subject: [PATCH 1/5] 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); From 499378b528149484b25da8bfdf8d2a6c1dec4ea0 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Fri, 24 Sep 2021 19:34:41 +0800 Subject: [PATCH 2/5] update --- frontend/src/views/files/Preview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 84ad3a16..57c365e8 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -341,7 +341,7 @@ export default { this.$store.commit("updateRequest", {}); let uri = url.removeLastDir(this.$route.path) + "/"; - this.$router.replace({ path: uri }); + this.$router.push({ path: uri }); }, download() { api.download(null, this.$route.path); From e7bc7c257d868e548b2dd85c92be3aaf7a4b8242 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Sat, 25 Sep 2021 03:46:32 +0800 Subject: [PATCH 3/5] Add files via upload --- frontend/src/views/files/Preview.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 57c365e8..99f80d69 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -339,9 +339,7 @@ export default { }, 500), close() { this.$store.commit("updateRequest", {}); - - let uri = url.removeLastDir(this.$route.path) + "/"; - this.$router.push({ path: uri }); + this.$router.go(-1); }, download() { api.download(null, this.$route.path); From fd740730b6d34f591c8dde16c8128ff53dd42c84 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Tue, 28 Sep 2021 10:55:11 +0800 Subject: [PATCH 4/5] Add files via upload --- frontend/src/views/files/Preview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 99f80d69..1c359923 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -339,7 +339,7 @@ export default { }, 500), close() { this.$store.commit("updateRequest", {}); - this.$router.go(-1); + history.back(); }, download() { api.download(null, this.$route.path); From 7fbe7c3941a0985dcd00334612e963ca12c412d6 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Tue, 28 Sep 2021 23:56:23 +0800 Subject: [PATCH 5/5] Add files via upload --- frontend/src/views/files/Preview.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 1c359923..57c365e8 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -339,7 +339,9 @@ export default { }, 500), close() { this.$store.commit("updateRequest", {}); - history.back(); + + let uri = url.removeLastDir(this.$route.path) + "/"; + this.$router.push({ path: uri }); }, download() { api.download(null, this.$route.path);