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] 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);