Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
25f30726
authored
2023-02-15 15:26:36 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
注释添加
1 parent
5f9fcd8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/login/index.vue
src/views/login/index.vue
View file @
25f3072
...
...
@@ -81,7 +81,7 @@ export default {
if
(
res
.
status
===
1
)
{
//存储token
sessionStorage
.
setItem
(
"token"
,
`Bearer
${
res
.
content
}
`
);
//
路由判断有无
//
登录成功后需判断有无重定向,没有重定向则跳转首页
this
.
$router
.
replace
(
this
.
$route
.
query
.
redirect
||
'/'
)
}
else
{
//错误处理
...
...
Please
register
or
sign in
to post a comment