From c14d52ec9a52545b24fc976bfbfc4fcfa289d104 Mon Sep 17 00:00:00 2001 From: zzp <34701892@qq.com> Date: Wed, 3 Sep 2025 17:30:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(login):=20=E5=B0=86=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E7=99=BB=E5=BD=95=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除短信验证码相关代码,修改输入框提示为密码输入 清理未使用的代码和多余的空行 --- src/views/login/component/account.vue | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/views/login/component/account.vue b/src/views/login/component/account.vue index d001132..a329bef 100644 --- a/src/views/login/component/account.vue +++ b/src/views/login/component/account.vue @@ -8,8 +8,8 @@ - - + @@ -47,7 +46,7 @@ import { Session, Local } from '/@/utils/storage'; import { formatAxis } from '/@/utils/formatTime'; import { NextLoading } from '/@/utils/loading'; import { getCommonSms, doLogin } from '/@/api/login'; -import { isMobileByWidth } from '/@/utils/Utils' +import { isMobileByWidth } from '/@/utils/Utils'; const isSendCode = ref(false); const sendCodeMins = ref(60); @@ -114,7 +113,7 @@ const state = reactive({ }, }); -onMounted(() => { }); +onMounted(() => {}); // 时间获取 const currentTime = computed(() => { @@ -185,9 +184,8 @@ const signInSuccess = (isNoPower: boolean | undefined) => { // 登录成功,跳到转首页 // 如果是复制粘贴的路径,非首页/登录页,那么登录成功后重定向到对应的路径中 - if (isMobileByWidth() && Session.get('userInfoLocal').userType == '01') { - console.log("🚀 ~ signInSuccess ~ router:", route) + console.log('🚀 ~ signInSuccess ~ router:', route); // 移动端逻辑 router.push('/richeditMobile'); @@ -201,7 +199,6 @@ const signInSuccess = (isNoPower: boolean | undefined) => { } else { router.push('/richedit'); } - } // 登录成功提示 @@ -212,8 +209,6 @@ const signInSuccess = (isNoPower: boolean | undefined) => { } state.loading.signIn = false; }; - -