This commit is contained in:
shizhong
2024-03-06 22:44:40 +08:00
parent 7319d24cbc
commit 73f6f15c54
6 changed files with 17 additions and 5 deletions

View File

@ -218,7 +218,7 @@ const getCode = async () => {
//获取租户ID
const getTenantId = async () => {
if (loginData.tenantEnable) {
const res = await LoginApi.getTenantIdByName(loginData.loginForm.tenantName)
const res = await LoginApi.getTenantIdByNameApi(loginData.loginForm.tenantName)
authUtil.setTenantId(res)
}
}
@ -274,7 +274,7 @@ const handleLogin = async (params) => {
const code = route?.query?.code as string
const state = route?.query?.state as string
const res = await LoginApi.login({
const res = await LoginApi.loginApi({
// 账号密码登录
username: loginData.loginForm.username,
password: loginData.loginForm.password,