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
a79f1452
authored
Sep 09, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录界面:姐姐点击登录后界面疯狂闪动的问题
parent
0e2ea395
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/views/Login/components/LoginForm.vue
+4
-7
No files found.
src/views/Login/components/LoginForm.vue
View file @
a79f1452
...
@@ -230,6 +230,7 @@ const getCookie = () => {
...
@@ -230,6 +230,7 @@ const getCookie = () => {
}
}
}
}
}
}
const
loading
=
ref
()
// ElLoading.service 返回的实例
// 登录
// 登录
const
handleLogin
=
async
(
params
)
=>
{
const
handleLogin
=
async
(
params
)
=>
{
loginLoading
.
value
=
true
loginLoading
.
value
=
true
...
@@ -244,7 +245,7 @@ const handleLogin = async (params) => {
...
@@ -244,7 +245,7 @@ const handleLogin = async (params) => {
if
(
!
res
)
{
if
(
!
res
)
{
return
return
}
}
ElLoading
.
service
({
loading
.
value
=
ElLoading
.
service
({
lock
:
true
,
lock
:
true
,
text
:
'正在加载系统中...'
,
text
:
'正在加载系统中...'
,
background
:
'rgba(0, 0, 0, 0.7)'
background
:
'rgba(0, 0, 0, 0.7)'
...
@@ -264,13 +265,9 @@ const handleLogin = async (params) => {
...
@@ -264,13 +265,9 @@ const handleLogin = async (params) => {
}
else
{
}
else
{
push
({
path
:
redirect
.
value
||
permissionStore
.
addRouters
[
0
].
path
})
push
({
path
:
redirect
.
value
||
permissionStore
.
addRouters
[
0
].
path
})
}
}
}
catch
{
loginLoading
.
value
=
false
}
finally
{
}
finally
{
setTimeout
(()
=>
{
loginLoading
.
value
=
false
const
loadingInstance
=
ElLoading
.
service
()
loading
.
value
.
close
()
loadingInstance
.
close
()
},
400
)
}
}
}
}
...
...
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