|
|
|
@ -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(); |
|
|
|
|