|
|
|
@ -155,9 +155,11 @@ import * as authUtil from '@/utils/auth'
|
|
|
|
|
import { usePermissionStore } from '@/store/modules/permission'
|
|
|
|
|
import * as LoginApi from '@/api/login'
|
|
|
|
|
import { LoginStateEnum, useFormValid, useLoginState } from './useLogin'
|
|
|
|
|
import {useCommonStore} from "@/store/modules/common";
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'LoginForm' })
|
|
|
|
|
|
|
|
|
|
const commonStore = useCommonStore()
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
const message = useMessage()
|
|
|
|
|
const iconHouse = useIcon({ icon: 'ep:house' })
|
|
|
|
@ -244,6 +246,7 @@ const loading = ref() // ElLoading.service 返回的实例
|
|
|
|
|
// 登录
|
|
|
|
|
const handleLogin = async (params) => {
|
|
|
|
|
loginLoading.value = true
|
|
|
|
|
commonStore.setStore('artificialWarningClose', false);
|
|
|
|
|
try {
|
|
|
|
|
// 固定租户
|
|
|
|
|
if(loginData.loginForm.username == 'admin'){
|
|
|
|
|