fix: clean up code formatting and adjust user model is_active field to null
This commit is contained in:
parent
83a53e61b6
commit
9f31832b4d
@ -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(() => {
|
||||
// modeList需要去掉lark 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;
|
||||
|
||||
@ -312,7 +312,7 @@ const search_form = ref<{
|
||||
username: '',
|
||||
nick_name: '',
|
||||
email: '',
|
||||
is_active: true,
|
||||
is_active: null,
|
||||
source: '',
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user