From 42ba1d5412cc201c63014a7289c39b0ca8b8b7f8 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Wed, 19 Feb 2025 10:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=9B=9E=E8=BD=A6=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 大唐会议前台1/pages/user/login.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/大唐会议前台1/pages/user/login.vue b/大唐会议前台1/pages/user/login.vue index e1b3e777..6b937661 100644 --- a/大唐会议前台1/pages/user/login.vue +++ b/大唐会议前台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');