소스 검색

防止切换权限用户后登录出现404

RuoYi 4 년 전
부모
커밋
a691da0c97
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ruoyi-ui/src/layout/components/Navbar.vue

+ 1 - 1
ruoyi-ui/src/layout/components/Navbar.vue

@@ -94,7 +94,7 @@ export default {
         type: 'warning'
       }).then(() => {
         this.$store.dispatch('LogOut').then(() => {
-          location.reload()
+          location.href = '/index';
         })
       })
     }