Browse Source

登录页面添加回车登录

master
1747191978@qq.com 4 months ago
parent
commit
42ba1d5412
  1. 7
      大唐会议前台1/pages/user/login.vue

7
大唐会议前台1/pages/user/login.vue

@ -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');

Loading…
Cancel
Save