Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
boyueCEnd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
boyueCEnd
Commits
2c8f19a1
Commit
2c8f19a1
authored
Nov 25, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f2190fe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
24 deletions
+8
-24
Login.vue
src/views/auth/Login.vue
+8
-24
No files found.
src/views/auth/Login.vue
View file @
2c8f19a1
...
...
@@ -165,11 +165,6 @@ const loginMsg = reactive({
})
const
loginMethods
=
ref
([
// {
// label: 'f',
// key: 7,
// url: f,
// },
{
label
:
'G'
,
key
:
1
,
...
...
@@ -191,6 +186,11 @@ const loginMethods = ref([
key
:
3
,
url
:
line
,
},
// {
// label: 'f',
// key: 7,
// url: f,
// },
])
// 验证规则调整
...
...
@@ -273,7 +273,7 @@ const handleClick = (path: string) => {
}
const
toggleLoginType
=
(
type
:
number
)
=>
{
if
(
type
==
3
)
return
Message
.
error
(
t
(
'login.loginTypeNotSupport'
))
if
(
type
==
3
||
type
==
7
)
return
Message
.
error
(
t
(
'login.loginTypeNotSupport'
))
if
(
type
==
2
)
return
getAppIdRedirectUri
()
loginMsg
.
reType
=
type
}
...
...
@@ -375,20 +375,6 @@ const handleLogin = async () => {
}
}
// 检查是否需要验证
const
checkNeedVerify
=
async
()
=>
{
try
{
const
response
=
await
ErpUserService
.
NeedVerifyStatusAsync
()
if
(
response
.
data
.
resultCode
===
ApiResult
.
SUCCESS
)
{
needVerify
.
value
=
response
.
data
.
data
===
1
}
else
{
needVerify
.
value
=
true
}
}
catch
(
error
)
{
needVerify
.
value
=
true
}
}
// 初始化
const
init
=
async
()
=>
{
// 如果已经登录且是正常代理商,直接跳转到仪表盘
...
...
@@ -403,19 +389,17 @@ const init = async () => {
return
}
}
await
checkNeedVerify
()
}
init
()
onMounted
(
async
()
=>
{
try
{
await
initGoogleSDK
();
// 确保 SDK 加载完成后渲染按钮
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
));
renderGoogleButton
()
const
code
=
router
.
query
.
code
;
const
code
=
router
.
query
?.
code
||
null
if
(
code
)
{
getOpenIdByCode
(
code
)
}
...
...
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