style:修改重定向
Showing
2 changed files
with
4 additions
and
10 deletions
... | @@ -42,11 +42,8 @@ export default { | ... | @@ -42,11 +42,8 @@ export default { |
42 | this.$store.dispatch("user/resetState"); | 42 | this.$store.dispatch("user/resetState"); |
43 | this.$store.dispatch("permission/resetRoutes"); | 43 | this.$store.dispatch("permission/resetRoutes"); |
44 | this.$router.replace({ | 44 | this.$router.replace({ |
45 | path: "/jg", | 45 | path: "/jg" |
46 | query: { | 46 | }) |
47 | redirect: this.$route.fullPath, | ||
48 | }, | ||
49 | }); | ||
50 | }) | 47 | }) |
51 | .catch((error) => { | 48 | .catch((error) => { |
52 | }) | 49 | }) | ... | ... |
... | @@ -45,11 +45,8 @@ export default { | ... | @@ -45,11 +45,8 @@ export default { |
45 | this.$store.dispatch("user/resetState"); | 45 | this.$store.dispatch("user/resetState"); |
46 | this.$store.dispatch("permission/resetRoutes"); | 46 | this.$store.dispatch("permission/resetRoutes"); |
47 | this.$router.replace({ | 47 | this.$router.replace({ |
48 | path: "/sb", | 48 | path: "/sb" |
49 | query: { | 49 | }) |
50 | redirect: this.$route.fullPath, | ||
51 | }, | ||
52 | }); | ||
53 | }) | 50 | }) |
54 | .catch((error) => { | 51 | .catch((error) => { |
55 | // console.dir(error); | 52 | // console.dir(error); | ... | ... |
-
Please register or sign in to post a comment