@ -97,9 +97,16 @@
created() {
this.getCaptchaImage() // 获取验证码
this.getConfig() // 获取配置信息
this.keyEnter()
},
methods: {
...mapMutations(["setTrainPath"]),
// 监听回车事件
keyEnter(){
document.onkeydown = e =>{
this.handleLogin() // 登录
}
// 获取验证码
async getConfig() {
const res = await config('sys.password.forget');