Bläddra i källkod

fix:切换权限重定向url

zh 2 år sedan
förälder
incheckning
e5c8d407f1
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/layout/components/Navbar.vue

+ 1 - 0
src/layout/components/Navbar.vue

@@ -731,6 +731,7 @@ export default {
     },
     },
     handleChangeArea(changeNum) {
     handleChangeArea(changeNum) {
       setUserChanging({ changeNum }).then(res => {
       setUserChanging({ changeNum }).then(res => {
+        this.$router.replace(this.$route.fullPath)
         this.$successMsg('切换成功')
         this.$successMsg('切换成功')
       })
       })
     }
     }