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
Unverified
Commit
a6e29c56
authored
Mar 09, 2024
by
芋道源码
Committed by
Gitee
Mar 09, 2024
Browse files
Options
Browse Files
Download
Plain Diff
!400 fix(LoginForm): update doSocialLogin
Merge pull request !400 from AhJindeg/dev
parents
4dabfcba
2d4ed85e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/views/Login/components/LoginForm.vue
+9
-3
No files found.
src/views/Login/components/LoginForm.vue
View file @
a6e29c56
...
...
@@ -291,10 +291,16 @@ const doSocialLogin = async (type: number) => {
await
getTenantId
()
// 如果获取不到,则需要弹出提示,进行处理
if
(
!
authUtil
.
getTenantId
())
{
await
message
.
prompt
(
'请输入租户名称'
,
t
(
'common.reminder'
)).
then
(
async
({
value
})
=>
{
const
res
=
await
LoginApi
.
getTenantIdByName
(
value
)
try
{
const
data
=
await
message
.
prompt
(
'请输入租户名称'
,
t
(
'common.reminder'
))
if
(
data
?.
action
!==
'confirm'
)
throw
'cancel'
const
res
=
await
LoginApi
.
getTenantIdByName
(
data
.
value
)
authUtil
.
setTenantId
(
res
)
})
}
catch
(
error
)
{
if
(
error
===
'cancel'
)
return
}
finally
{
loginLoading
.
value
=
false
}
}
}
// 计算 redirectUri
...
...
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