|
@ -110,6 +110,7 @@ import { usePermissionStore } from '@/store/modules/permission' |
|
|
import { getTenantIdByName, sendSmsCode, smsLogin } from '@/api/login' |
|
|
import { getTenantIdByName, sendSmsCode, smsLogin } from '@/api/login' |
|
|
import LoginFormTitle from './LoginFormTitle.vue' |
|
|
import LoginFormTitle from './LoginFormTitle.vue' |
|
|
import { LoginStateEnum, useFormValid, useLoginState } from './useLogin' |
|
|
import { LoginStateEnum, useFormValid, useLoginState } from './useLogin' |
|
|
|
|
|
import { getTenant } from '@/utils/systemParam' |
|
|
|
|
|
|
|
|
defineOptions({ name: 'MobileForm' }) |
|
|
defineOptions({ name: 'MobileForm' }) |
|
|
|
|
|
|
|
@ -125,7 +126,7 @@ const iconCircleCheck = useIcon({ icon: 'ep:circle-check' }) |
|
|
const { validForm } = useFormValid(formSmsLogin) |
|
|
const { validForm } = useFormValid(formSmsLogin) |
|
|
const { handleBackLogin, getLoginState } = useLoginState() |
|
|
const { handleBackLogin, getLoginState } = useLoginState() |
|
|
const getShow = computed(() => unref(getLoginState) === LoginStateEnum.MOBILE) |
|
|
const getShow = computed(() => unref(getLoginState) === LoginStateEnum.MOBILE) |
|
|
const tenantArray = JSON.parse(import.meta.env.VITE_TENANT); |
|
|
const tenantArray = JSON.parse(getTenant()) |
|
|
|
|
|
|
|
|
const rules = { |
|
|
const rules = { |
|
|
tenantName: [required], |
|
|
tenantName: [required], |
|
|