From cfa5f29163b14f7f751622eb3a7afaa3270df949 Mon Sep 17 00:00:00 2001 From: zhangxiao <898441624@qq.com> Date: 星期三, 07 八月 2024 09:52:47 +0800 Subject: [PATCH] fix: 去掉消息通知 --- src/views/login/components/login-form.vue | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/views/login/components/login-form.vue b/src/views/login/components/login-form.vue index 8d4c702..a1259f6 100644 --- a/src/views/login/components/login-form.vue +++ b/src/views/login/components/login-form.vue @@ -1,7 +1,7 @@ <template> <div class="login-form-wrapper"> <div class="login-form-title">{{ $t('login.form.title') }}</div> -<!-- <div class="login-form-sub-title">{{ $t('login.form.title') }}</div>--> + <!-- <div class="login-form-sub-title">{{ $t('login.form.title') }}</div>--> <div class="login-form-error-msg">{{ errorMessage }}</div> <a-form ref="loginForm" @@ -16,10 +16,7 @@ :validate-trigger="['change', 'blur']" hide-label > - <a-input - v-model="userInfo.email" - placeholder="璇疯緭鍏ラ偖绠�" - > + <a-input v-model="userInfo.email" placeholder="璇疯緭鍏ラ偖绠�"> <template #prefix> <icon-user /> </template> @@ -55,9 +52,9 @@ <a-button type="primary" html-type="submit" long :loading="loading"> {{ $t('login.form.login') }} </a-button> - <a-button type="text" long class="login-form-register-btn"> + <!-- <a-button type="text" long class="login-form-register-btn"> {{ $t('login.form.register') }} - </a-button> + </a-button> --> </a-space> </a-form> </div> @@ -103,7 +100,7 @@ setLoading(true); try { const rsaPassWord = rsaPsw(values.password) as string; - console.log(values,'鐧诲綍淇℃伅'); + console.log(values, '鐧诲綍淇℃伅'); await userStore.login({ email: values.email, password: rsaPassWord, @@ -115,15 +112,13 @@ ...othersQuery, }, }); - Message.success(t('娆㈣繋鍥炴潵')); + Message.success(t('鐧诲綍鎴愬姛')); const { rememberPassword } = loginConfig.value; const { email, password } = values; // 瀹為檯鐢熶骇鐜闇�瑕佽繘琛屽姞瀵嗗瓨鍌ㄣ�� // The actual production environment requires encrypted storage. loginConfig.value.email = rememberPassword ? email : ''; loginConfig.value.password = rememberPassword ? password : ''; - - } catch (err) { errorMessage.value = (err as Error).message; } finally { -- Gitblit v1.8.0