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