Browse Source

退出登录优化

huangb 7 năm trước cách đây
mục cha
commit
cbb4b61369
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      pages/logquit/index.vue

+ 4 - 2
pages/logquit/index.vue

@@ -30,12 +30,14 @@
               }
               let params = a.substr(0, a.length - 1)
               if (this.$route.query.baseUrl) {
-                this.$jsonp(`${this.$route.query.baseUrl}`, {
+                this.$jsonp(this.$route.query.baseUrl, {
                   name: 'successCallback',
                   timeout: 3000
                 }, (err, data) => {
+                  console.log(err)
                   if (err) {
-                    this.$message.error('退出失败,请重试')
+                    this.$message.error('登录超时,请重试')
+                    this.isShowLoading = false
                     throw err
                   } else {
                     this.logoutOther(response, params)