瀏覽代碼

防止切换权限用户后登录出现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';
         })
       })
     }