验证码路径调整
This commit is contained in:
parent
1b442d7e8a
commit
b2cec26840
|
@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
|
|||
|
||||
module.exports = merge(prodEnv, {
|
||||
NODE_ENV: '"development"',
|
||||
BASE_API: '"http://127.0.0.1:8082"',
|
||||
BASE_API: '"http://user.api.it120.cc"',
|
||||
})
|
||||
|
|
|
@ -80,7 +80,8 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.changeRandom();
|
||||
this.changeRandom()
|
||||
console.log('1233', process.env.BASE_API)
|
||||
},
|
||||
methods: {
|
||||
showPwd() {
|
||||
|
@ -162,8 +163,7 @@ export default {
|
|||
},
|
||||
changeRandom() {
|
||||
this.loginForm.picKey = Math.random();
|
||||
// (document.getElementsByClassName('random'))[0].setAttribute('src', 'http://127.0.0.1:8082/code?k=' + this.loginForm.picKey)
|
||||
(document.getElementsByClassName('random'))[0].setAttribute('src', 'http://user.api.it120.cc/code?k=' + this.loginForm.picKey)
|
||||
(document.getElementsByClassName('random'))[0].setAttribute('src', process.env.BASE_API + '/code?k=' + this.loginForm.picKey)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -197,7 +197,7 @@ export default {
|
|||
},
|
||||
changeRandom() {
|
||||
this.loginForm.picKey = Math.random();
|
||||
(document.getElementsByClassName('random'))[0].setAttribute('src', 'http://user.api.it120.cc/code?k=' + this.loginForm.picKey)
|
||||
(document.getElementsByClassName('random'))[0].setAttribute('src', process.env.BASE_API + '/code?k=' + this.loginForm.picKey)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ export default {
|
|||
},
|
||||
changeRandom() {
|
||||
this.loginForm.picKey = Math.random();
|
||||
(document.getElementsByClassName('random'))[0].setAttribute('src', 'http://user.api.it120.cc/code?k=' + this.loginForm.picKey)
|
||||
(document.getElementsByClassName('random'))[0].setAttribute('src', process.env.BASE_API + '/code?k=' + this.loginForm.picKey)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue