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() { 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');

Loading…
Cancel
Save