fix(项目设置): 修改三方认证回调登录页面闪现问题
This commit is contained in:
parent
fcc7fbb9a1
commit
7c8c7c4555
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<div v-if="preheat" class="login-form" :style="props.isPreview ? 'height: inherit' : 'height: 100vh'">
|
||||
<a-spin v-if="preheat" :loading="preheat" tip="This may take a while..."> </a-spin>
|
||||
<a-spin :loading="preheat" :tip="t('login.form.loading')"> </a-spin>
|
||||
</div>
|
||||
<div v-if="!preheat" class="login-form" :style="props.isPreview ? 'height: inherit' : 'height: 100vh'">
|
||||
<div v-else class="login-form" :style="props.isPreview ? 'height: inherit' : 'height: 100vh'">
|
||||
<div class="title">
|
||||
<div class="flex justify-center">
|
||||
<img :src="innerLogo" class="h-[60px] w-[290px]" />
|
||||
|
@ -153,7 +153,7 @@
|
|||
|
||||
const orgOptions = ref<SelectOptionData[]>([]);
|
||||
|
||||
const preheat = ref(false);
|
||||
const preheat = ref(true);
|
||||
|
||||
const props = defineProps<{
|
||||
isPreview?: boolean;
|
||||
|
@ -313,11 +313,9 @@
|
|||
}
|
||||
getAuthDetailByType(authType).then((res) => {
|
||||
if (!res) {
|
||||
preheat.value = false;
|
||||
return;
|
||||
}
|
||||
if (!res.enable) {
|
||||
preheat.value = false;
|
||||
Message.error(t('login.auth_not_enable'));
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -18,4 +18,5 @@ export default {
|
|||
'login.form.LDAPLogin': 'LDAP',
|
||||
'login.form.username': 'Username',
|
||||
'login.form.password': 'Password',
|
||||
'login.form.loading': 'Logging in',
|
||||
};
|
||||
|
|
|
@ -18,4 +18,5 @@ export default {
|
|||
'login.form.LDAPLogin': 'LDAP登录',
|
||||
'login.form.username': '用户名',
|
||||
'login.form.password': '密码',
|
||||
'login.form.loading': '登录中',
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue