This commit is contained in:
Leo_Ding 2025-11-10 16:15:38 +08:00
parent 59c35cf6dd
commit 3917c607aa

View File

@ -73,7 +73,7 @@ const captcha_img = ref('')
const captcha_id = ref('') const captcha_id = ref('')
const currentStep = ref(2) // const currentStep = ref(2) //
const httpApi = import.meta.env.BASE_URL + `api/v1/captcha/image` const httpApi = config('http.apiBasic') + `/api/v1/captcha/image`
const redirect = computed(() => decodeURIComponent(route.query?.redirect ?? '')) const redirect = computed(() => decodeURIComponent(route.query?.redirect ?? ''))
formRules.value = { formRules.value = {
@ -83,6 +83,7 @@ formRules.value = {
} }
onMounted(() => { onMounted(() => {
// //
userStore.logout() userStore.logout()
getCaptcha() getCaptcha()
@ -97,6 +98,7 @@ async function getCaptcha() {
}) })
captcha_id.value = data.captcha_id captcha_id.value = data.captcha_id
captcha_img.value = httpApi + `?id=${data.captcha_id}` captcha_img.value = httpApi + `?id=${data.captcha_id}`
} }
/** /**
* 登录 * 登录