|
@@ -50,10 +50,9 @@
|
|
|
/>
|
|
|
</FormItem>
|
|
|
|
|
|
- <ARow class="enter-x">
|
|
|
+ <!-- <ARow class="enter-x">
|
|
|
<ACol :span="12">
|
|
|
<FormItem>
|
|
|
- <!-- No logic, you need to deal with it yourself -->
|
|
|
<Checkbox v-model:checked="rememberMe" size="small">
|
|
|
{{ t('sys.login.rememberMe') }}
|
|
|
</Checkbox>
|
|
@@ -61,13 +60,12 @@
|
|
|
</ACol>
|
|
|
<ACol :span="12">
|
|
|
<FormItem :style="{ 'text-align': 'right' }">
|
|
|
- <!-- No logic, you need to deal with it yourself -->
|
|
|
<Button type="link" size="small" @click="setLoginState(LoginStateEnum.RESET_PASSWORD)">
|
|
|
{{ t('sys.login.forgetPassword') }}
|
|
|
</Button>
|
|
|
</FormItem>
|
|
|
</ACol>
|
|
|
- </ARow>
|
|
|
+ </ARow> -->
|
|
|
|
|
|
<FormItem class="enter-x">
|
|
|
<Button type="primary" size="large" block @click="handleLogin" :loading="loading">
|
|
@@ -109,8 +107,8 @@
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
import { reactive, ref, unref, computed } from 'vue';
|
|
|
- // Divider
|
|
|
- import { Checkbox, Form, Input, Row, Col, Button } from 'ant-design-vue';
|
|
|
+ // Divider,Row, Col,Checkbox
|
|
|
+ import { Form, Input, Button } from 'ant-design-vue';
|
|
|
// import {
|
|
|
// GithubFilled,
|
|
|
// WechatFilled,
|
|
@@ -131,21 +129,21 @@
|
|
|
|
|
|
//import { onKeyStroke } from '@vueuse/core';
|
|
|
|
|
|
- const ACol = Col;
|
|
|
- const ARow = Row;
|
|
|
+ // const ACol = Col;
|
|
|
+ // const ARow = Row;
|
|
|
const FormItem = Form.Item;
|
|
|
const InputPassword = Input.Password;
|
|
|
const { t } = useI18n();
|
|
|
const { notification, createErrorModal } = useMessage();
|
|
|
const { prefixCls } = useDesign('login');
|
|
|
const userStore = useUserStore();
|
|
|
-
|
|
|
- const { setLoginState, getLoginState } = useLoginState();
|
|
|
+ // setLoginState
|
|
|
+ const { getLoginState } = useLoginState();
|
|
|
const { getFormRules } = useFormRules();
|
|
|
|
|
|
const formRef = ref();
|
|
|
const loading = ref(false);
|
|
|
- const rememberMe = ref(false);
|
|
|
+ // const rememberMe = ref(false);
|
|
|
const isDragValidate = ref(false);
|
|
|
|
|
|
const formData = reactive({
|