fix: clean up code formatting and adjust user model is_active field to null

This commit is contained in:
wxg0103 2025-07-30 16:26:12 +08:00
parent 83a53e61b6
commit 9f31832b4d
2 changed files with 29 additions and 24 deletions

View File

@ -179,6 +179,7 @@ import QrCodeTab from '@/views/chat/user-login/scanCompinents/QrCodeTab.vue'
import {MsgConfirm, MsgError} from '@/utils/message.ts'
import PasswordAuth from '@/views/chat/auth/component/password.vue'
import {isAppIcon} from '@/utils/common'
useResize()
const router = useRouter()
@ -330,7 +331,8 @@ function redirectAuth(authType: string, needMessage: boolean = false) {
.then(() => {
window.location.href = url
})
.catch(() => {})
.catch(() => {
})
} else {
console.log('url', url)
window.location.href = url
@ -378,7 +380,7 @@ onBeforeMount(() => {
// modeListlark wecom dingtalk
modeList.value = modeList.value.filter((item) => !['lark', 'wecom', 'dingtalk'].includes(item))
if (QrList.value.length > 0) {
modeList.value.push('QR_CODE')
modeList.value = ['QR_CODE', ...modeList.value]
QrList.value.forEach((item) => {
orgOptions.value.push({
key: item,
@ -409,12 +411,15 @@ onBeforeMount(() => {
border-bottom: 1px solid var(--el-border-color);
}
}
.user-login-container {
width: 480px;
.login-card {
padding: 18px;
}
}
.login-gradient-divider {
position: relative;
text-align: center;

View File

@ -312,7 +312,7 @@ const search_form = ref<{
username: '',
nick_name: '',
email: '',
is_active: true,
is_active: null,
source: '',
})