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

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

@@ -122,7 +122,7 @@ export default {
     },
     logout() {
       this.$store.dispatch('LogOut').then(() => {
-        location.reload()
+        this.$router.push({ path: this.redirect || '/login' })
       })
     },
     getTime() {