Browse Source

安全退出

zweizhao 7 years ago
parent
commit
b137e4cc91
1 changed files with 1 additions and 8 deletions
  1. 1 8
      components/header.vue

+ 1 - 8
components/header.vue

@@ -184,14 +184,7 @@ export default {
   methods: {
   methods: {
     ...mapMutations(['updateUserinfo']),
     ...mapMutations(['updateUserinfo']),
     async clickQuit() {
     async clickQuit() {
-      let res = await this.$post('/user/quit')
-      console.log(res)
-      this.$message({
-        message: '退出成功'
-      })
-      setTimeout(() => {
-        location.reload()
-      }, 2000);
+      location.href = '/user/quit'
     },
     },
     clickMessages(url) {
     clickMessages(url) {
       location.href = url
       location.href = url