登录404问题

This commit is contained in:
typ1805 2024-06-16 14:13:33 +08:00
parent ca0ed8624a
commit 1ff567d9b7

View File

@ -3,6 +3,7 @@
import type {FormInstance} from 'element-plus'
import {useRouter} from 'vue-router'
import {login,getCode} from '@/api/auth'
import {HOME_URL} from '@/config/config'
const router = useRouter()
const loginFormRef = ref<FormInstance>()
@ -57,7 +58,7 @@
login(param).then((res:any) =>{
if(res){
state.loading = false;
router.push({path: 'index'});
router.push({path: HOME_URL});
}
}).catch(()=>{
onCode()