Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
bd3e03fa
Commit
bd3e03fa
authored
Feb 21, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix-issue#7
parent
87ca9a71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
pages/users/login.vue
+8
-2
No files found.
pages/users/login.vue
View file @
bd3e03fa
...
...
@@ -87,8 +87,15 @@ export default {
passwordErrMsg
:
''
,
// 密码错误 提示信息
verifyErrMsg
:
''
,
// 验证码错误 提示信息
isCount
:
false
,
// 是否开始倒计时
from
:
'/'
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
vm
.
from
=
from
.
fullPath
});
},
methods
:
{
// 显示为密码登录
handleLoginPassword
()
{
...
...
@@ -199,7 +206,7 @@ export default {
type
:
'success'
,
message
:
'登录成功!'
});
this
.
$router
.
push
(
'/'
)
this
.
$router
.
push
(
this
.
from
)
}
else
{
store
.
commit
(
'auth/logout'
);
store
.
commit
(
'userProfile/removeUser'
)
...
...
@@ -207,7 +214,6 @@ export default {
}
else
if
(
authResponse
!==
undefined
)
{
// 认证失败
// errorCode(authResponse);
console
.
log
(
authResponse
);
if
(
authResponse
.
code
===
1002
)
{
this
.
passwordErrMsg
=
authResponse
.
msg
;
}
else
if
(
authResponse
.
code
===
1001
)
{
...
...
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