Browse Source

修改代理页面登录逻辑

yangc 7 years ago
parent
commit
05a9d93e00
1 changed files with 7 additions and 1 deletions
  1. 7 1
      pages/agency/index.vue

+ 7 - 1
pages/agency/index.vue

@@ -80,8 +80,14 @@
                   timeout: 5000
                 }, (err, data) => {
                   if (err) {
-                    this.$indicator.open('登录超时,请重试')
                     this.$indicator.close()
+                    this.$toast({
+                      message: '登录超时,即将跳转...',
+                      iconClass: 'el-icon-error'
+                    })
+                    setTimeout(() => {
+                      crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com')
+                    }, 1000)
                     throw err
                   } else {
                     const crossAfter = this.crossAfter