|
|
@ -29,7 +29,7 @@ |
|
|
|
<el-form-item prop="code"> |
|
|
|
<div class="flex w-[100%]"> |
|
|
|
<el-input v-model="loginData.loginForm.code" placeholder="请输入验证码" style="width: 76%;margin-right: 10px;height: 42px;" |
|
|
|
:prefix-icon="iconLock" @keyup.enter="getCode()" /> |
|
|
|
:prefix-icon="iconLock" @keyup.enter="handleLogin()" /> |
|
|
|
<div class="login-code flex-1"> |
|
|
|
<img :src="codeUrl" @click="getCode" class="login-code-img" /> |
|
|
|
</div> |
|
|
@ -204,6 +204,7 @@ const handleLogin = async (params) => { |
|
|
|
if (redirect.value.indexOf('sso') !== -1) { |
|
|
|
window.location.href = window.location.href.replace('/login?redirect=', '') |
|
|
|
} else { |
|
|
|
console.log(redirect.value) |
|
|
|
push({ path: redirect.value || permissionStore.addRouters[0].path }) |
|
|
|
} |
|
|
|
} finally { |
|
|
@ -229,6 +230,7 @@ const doSocialLogin = async (type: number) => { |
|
|
|
location.origin + '/social-login?type=' + type + '&redirect=' + (redirect.value || '/') |
|
|
|
// 进行跳转 |
|
|
|
const res = await LoginApi.socialAuthRedirect(type, encodeURIComponent(redirectUri)) |
|
|
|
console.log(33) |
|
|
|
window.location.href = res |
|
|
|
} |
|
|
|
} |
|
|
|