diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue index 50bc0e1..c4c1321 100644 --- a/src/layouts/home/index.vue +++ b/src/layouts/home/index.vue @@ -216,6 +216,7 @@ export default { } .cover { max-width: 250px; + max-height: 160px; margin: 10px 0 20px; } .detail { diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index 395addd..e214f5b 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -255,7 +255,6 @@ export default { }, // 处理登录成功 setLogin() { - window.opener && window.opener.location.reload() // 刷新官网 util.local.set(Setting.tokenKey, this.token, Setting.tokenExpires) // 查询是否是客户,如果是客户,则弹出选择端的页面去选择跳转到哪个端 this.$get(this.api.isClient).then(res => { @@ -265,6 +264,8 @@ export default { userName && this.SET_INFO({ userName }) + window.opener && window.opener.location.reload() // 刷新官网 + util.local.set(Setting.storeKey,this.$store.state) }).catch(res => {}) // 查询schoolId this.$post(this.api.getSchoolIdByToken).then(res => { diff --git a/src/setting.js b/src/setting.js index faeaa23..9d6f976 100644 --- a/src/setting.js +++ b/src/setting.js @@ -25,7 +25,7 @@ const Setting = { * 正式:http://www.dataforward.cn:9000 * */ // apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202:9000', - apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000/' : `${location.origin}:9000/`, + apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000/' : `${location.origin}:9000/`, // 加密货币接口地址 cryptoBaseURL: `http://159.138.53.111/`, // 接口请求返回错误时,弹窗的持续时间,单位:秒