Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
44efb13c
authored
Jul 10, 2023
by
xingyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: login error
parent
ba1254f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
src/views/Login/components/LoginForm.vue
+1
-1
src/views/Login/components/QrCodeForm.vue
+1
-1
src/views/Login/components/SSOLogin.vue
+12
-2
No files found.
src/views/Login/components/LoginForm.vue
View file @
44efb13c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
label-width=
"120px"
label-width=
"120px"
size=
"large"
size=
"large"
>
>
<el-row
style=
"mar
ing-left: -10px; maring
-right: -10px"
>
<el-row
style=
"mar
gin-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%"
/>
...
...
src/views/Login/components/QrCodeForm.vue
View file @
44efb13c
<
template
>
<
template
>
<el-row
v-show=
"getShow"
style=
"mar
ing-left: -10px; maring
-right: -10px"
>
<el-row
v-show=
"getShow"
style=
"mar
gin-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>
...
...
src/views/Login/components/SSOLogin.vue
View file @
44efb13c
...
@@ -55,7 +55,14 @@ const client = ref({
...
@@ -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_id、scope 等参数
// URL 上的 client_id、scope 等参数
responseType
:
''
,
responseType
:
''
,
clientId
:
''
,
clientId
:
''
,
...
@@ -64,7 +71,10 @@ const queryParams = reactive({
...
@@ -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
)
// 表单是否提交中
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment