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