Browse Source

🕟 优化

master
wangxiang 3 years ago
parent
commit
a7685ac015
  1. 9
      kicc-ui/src/views/core/login/LoginForm.vue

9
kicc-ui/src/views/core/login/LoginForm.vue

@ -110,15 +110,14 @@ @@ -110,15 +110,14 @@
const { notification, createErrorModal } = useMessage();
const { prefixCls } = useDesign('login');
const userStore = useUserStore();
const { setLoginState, getLoginState } = useLoginState();
const { getFormRules } = useFormRules();
const formRef = ref();
const loading = ref(false);
const rememberMe = ref(false);
const codeUrl = ref();
const { validForm } = useFormValid(formRef);
const getShow = computed(() => unref(getLoginState) === LoginStateEnum.LOGIN);
const formData = reactive({
account: 'admin',
password: '123456',
@ -126,14 +125,10 @@ @@ -126,14 +125,10 @@
code: '',
});
const { validForm } = useFormValid(formRef);
onMounted(() => {
getCode();
});
const getShow = computed(() => unref(getLoginState) === LoginStateEnum.LOGIN);
async function getCode() {
try {
const codeModel = await getCaptcha();

Loading…
Cancel
Save