dev_2022-04-07
yujialong 3 years ago
parent 23f2121f9a
commit 9c529091f5
  1. 1
      src/layouts/home/index.vue
  2. 3
      src/pages/account/login/index.vue
  3. 2
      src/setting.js

@ -216,6 +216,7 @@ export default {
} }
.cover { .cover {
max-width: 250px; max-width: 250px;
max-height: 160px;
margin: 10px 0 20px; margin: 10px 0 20px;
} }
.detail { .detail {

@ -255,7 +255,6 @@ export default {
}, },
// //
setLogin() { setLogin() {
window.opener && window.opener.location.reload() //
util.local.set(Setting.tokenKey, this.token, Setting.tokenExpires) util.local.set(Setting.tokenKey, this.token, Setting.tokenExpires)
// //
this.$get(this.api.isClient).then(res => { this.$get(this.api.isClient).then(res => {
@ -265,6 +264,8 @@ export default {
userName && this.SET_INFO({ userName && this.SET_INFO({
userName userName
}) })
window.opener && window.opener.location.reload() //
util.local.set(Setting.storeKey,this.$store.state)
}).catch(res => {}) }).catch(res => {})
// schoolId // schoolId
this.$post(this.api.getSchoolIdByToken).then(res => { this.$post(this.api.getSchoolIdByToken).then(res => {

@ -25,7 +25,7 @@ const Setting = {
* 正式http://www.dataforward.cn:9000 * 正式http://www.dataforward.cn:9000
* */ * */
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202: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/`, cryptoBaseURL: `http://159.138.53.111/`,
// 接口请求返回错误时,弹窗的持续时间,单位:秒 // 接口请求返回错误时,弹窗的持续时间,单位:秒

Loading…
Cancel
Save