Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
national_museum_vod-H5
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fubaole
national_museum_vod-H5
Commits
2410c329
Commit
2410c329
authored
May 24, 2021
by
乐宝呗666
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉重定向路径
parent
82ed59b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
login.vue
src/views/login.vue
+3
-3
No files found.
src/views/login.vue
View file @
2410c329
...
...
@@ -67,11 +67,11 @@ export default {
const
isOpt
=
data
.
user
.
type
;
sessionStorage
.
setItem
(
"token"
,
data
.
token
);
sessionStorage
.
setItem
(
"userInfo"
,
JSON
.
stringify
(
data
.
user
));
let
redirectPath
=
decodeURIComponent
(
this
.
$route
.
fullPath
).
split
(
'redirect='
)[
1
]
//
let redirectPath = decodeURIComponent(this.$route.fullPath).split('redirect=')[1]
if
(
isOpt
==
"4"
)
{
this
.
$router
.
push
(
redirectPath
||
"/opt"
);
this
.
$router
.
push
(
"/opt"
);
}
else
if
(
isOpt
==
"2"
)
{
this
.
$router
.
push
(
redirectPath
||
"/commit"
);
this
.
$router
.
push
(
"/commit"
);
}
else
{
this
.
$toast
.
fail
(
"您登录的账号既不是运维账号也不是单位用户账号,不能使用H5的功能"
);
}
...
...
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