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; }; - -