fix: login error

This commit is contained in:
xingyu 2023-07-10 11:16:42 +08:00
parent ba1254f397
commit 44efb13c0e
3 changed files with 14 additions and 4 deletions

View File

@ -9,7 +9,7 @@
label-width="120px" label-width="120px"
size="large" size="large"
> >
<el-row style="maring-left: -10px; maring-right: -10px"> <el-row style="margin-left: -10px; margin-right: -10px">
<el-col :span="24" style="padding-left: 10px; padding-right: 10px"> <el-col :span="24" style="padding-left: 10px; padding-right: 10px">
<el-form-item> <el-form-item>
<LoginFormTitle style="width: 100%" /> <LoginFormTitle style="width: 100%" />

View File

@ -1,5 +1,5 @@
<template> <template>
<el-row v-show="getShow" style="maring-left: -10px; maring-right: -10px"> <el-row v-show="getShow" style="margin-left: -10px; margin-right: -10px">
<el-col :span="24" style="padding-left: 10px; padding-right: 10px"> <el-col :span="24" style="padding-left: 10px; padding-right: 10px">
<LoginFormTitle style="width: 100%" /> <LoginFormTitle style="width: 100%" />
</el-col> </el-col>

View File

@ -55,7 +55,14 @@ const client = ref({
name: '', name: '',
logo: '' logo: ''
}) })
const queryParams = reactive({ interface queryType {
responseType: string
clientId: string
redirectUri: string
state: string
scopes: string[]
}
const queryParams = reactive<queryType>({
// URL client_idscope // URL client_idscope
responseType: '', responseType: '',
clientId: '', clientId: '',
@ -64,7 +71,10 @@ const queryParams = reactive({
scopes: [] // query scopes: [] // query
}) })
const ssoVisible = computed(() => unref(getLoginState) === LoginStateEnum.SSO) // SSO const ssoVisible = computed(() => unref(getLoginState) === LoginStateEnum.SSO) // SSO
const formData = reactive({ interface formType {
scopes: string[]
}
const formData = reactive<formType>({
scopes: [] // scope scopes: [] // scope
}) })
const formLoading = ref(false) // const formLoading = ref(false) //