From 0e1b1804b79d490b9e2b4f09326276e649501ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=99=E9=83=BD=E6=B2=A1=E7=94=A8?= <615206459@qq.com> Date: Sat, 28 Sep 2024 14:33:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/pages/login/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/base/pages/login/index.vue b/src/modules/base/pages/login/index.vue index db46d6b..c4c1bf0 100644 --- a/src/modules/base/pages/login/index.vue +++ b/src/modules/base/pages/login/index.vue @@ -80,14 +80,14 @@ import { useBase } from "/$/base"; import PicCaptcha from "./components/pic-captcha.vue"; import { storage } from "/@/cool/utils"; -const { refs, setRefs, router, service } = useCool(); +const { refs, setRefs, router, service, browser } = useCool(); const { user, app } = useBase(); // 状态 const saving = ref(false); // 避免自动填充 -const readonly = ref(true); +const readonly = ref(!browser.isMini); // 表单数据 const form = reactive({ @@ -125,12 +125,12 @@ async function toLogin() { // 跳转首页 router.push("/"); - } catch (err: any) { + } catch (err) { // 刷新验证码 refs.picCaptcha.refresh(); // 提示错误 - ElMessage.error(err.message); + ElMessage.error((err as Error).message); } saving.value = false;