瀏覽代碼

fix:切换权限重定向url

zh 2 年之前
父節點
當前提交
e5c8d407f1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/layout/components/Navbar.vue

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

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