Skip to content

Commit

Permalink
登录界面微调
Browse files Browse the repository at this point in the history
  • Loading branch information
think-gem committed Nov 7, 2024
1 parent f324661 commit 619b9fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/views/sys/login/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@
margin: auto;
background-color: #fff;
box-shadow: 0 0 8px #ddd;
.ant-form-item {
margin-bottom: 15px;
}
}
&::before {
Expand Down
1 change: 1 addition & 0 deletions src/views/sys/login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
v-show="getShow"
@keypress.enter="handleLogin"
>
<div class="mb-5"></div>
<FormItem name="account" class="enter-x">
<Input
size="large"
Expand Down
3 changes: 0 additions & 3 deletions src/views/sys/login/useLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export function useFormRules(formData?: Recordable) {
const getPasswordFormRule = computed(() => createRule(t('sys.login.passwordPlaceholder')));
const getSmsFormRule = computed(() => createRule(t('sys.login.smsPlaceholder')));
const getMobileFormRule = computed(() => createRule(t('sys.login.mobilePlaceholder')));
const getCorpRule = computed(() => createRule(t('sys.login.corpPlaceholder')));

const validatePolicy = async (_: RuleObject, value: boolean) => {
return !value ? Promise.reject(t('sys.login.policyPlaceholder')) : Promise.resolve();
Expand All @@ -67,7 +66,6 @@ export function useFormRules(formData?: Recordable) {
const passwordFormRule = unref(getPasswordFormRule);
const smsFormRule = unref(getSmsFormRule);
const mobileFormRule = unref(getMobileFormRule);
const corpRule = unref(getCorpRule);

const mobileRule = {
sms: smsFormRule,
Expand Down Expand Up @@ -102,7 +100,6 @@ export function useFormRules(formData?: Recordable) {
return {
account: accountFormRule,
password: passwordFormRule,
corpCode: corpRule,
} as any;
}
});
Expand Down

0 comments on commit 619b9fd

Please sign in to comment.