浏览代码

退出登录优化

huangb 7 年之前
父节点
当前提交
cbb4b61369
共有 1 个文件被更改,包括 4 次插入2 次删除
  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)
               let params = a.substr(0, a.length - 1)
               if (this.$route.query.baseUrl) {
               if (this.$route.query.baseUrl) {
-                this.$jsonp(`${this.$route.query.baseUrl}`, {
+                this.$jsonp(this.$route.query.baseUrl, {
                   name: 'successCallback',
                   name: 'successCallback',
                   timeout: 3000
                   timeout: 3000
                 }, (err, data) => {
                 }, (err, data) => {
+                  console.log(err)
                   if (err) {
                   if (err) {
-                    this.$message.error('退出失败,请重试')
+                    this.$message.error('登录超时,请重试')
+                    this.isShowLoading = false
                     throw err
                     throw err
                   } else {
                   } else {
                     this.logoutOther(response, params)
                     this.logoutOther(response, params)