Browse Source

登录页面跨域请求

hangb 7 years ago
parent
commit
d2424ef461
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/login/Login.vue

+ 2 - 2
components/login/Login.vue

@@ -220,7 +220,7 @@
           }
         }
         this.appId = request['appId'] || ''
-        this.returnUrl = request['returnUrl'] || ''
+        this.returnUrl = request['returnURL'] || ''
         this.baseUrl = request['baseUrl'] || ''
       },
       // 获取后台返回的数据
@@ -300,7 +300,7 @@
                 } else if (response.data.content.loginUrls) {
 //                  遍历登录url循环让各应用登录(需要跨域)
                   for (var i in response.data.content.loginUrls) {
-                    this.$jsonp(`response.data.content.loginUrls${[i]}`, function (err, data) {
+                    this.$jsonp(`${response.data.content.loginUrls[i]}`, function (err, data) {
                       if (err) throw err
                       console.log(data)
                     })