Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘琦
voucher-h5
Commits
4aa3e4ae
Commit
4aa3e4ae
authored
Sep 11, 2019
by
潘琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面被微信篡改后新连接跳转;
parent
a49d4901
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
permission.js
src/permission.js
+2
-2
No files found.
src/permission.js
View file @
4aa3e4ae
...
...
@@ -162,11 +162,11 @@ const redirectUrl = () => {
let
newUrl
=
curUrl
.
replace
(
'?scene=0'
,
''
)
window
.
location
.
href
=
newUrl
return
false
}
else
if
(
curUrl
.
indexOf
(
'/voucher/?'
))
{
}
else
if
(
curUrl
.
indexOf
(
'/voucher/?'
)
>=
0
)
{
const
urlArr
=
curUrl
.
split
(
'/voucher/?'
)
const
locationStr
=
urlArr
[
0
]
const
pathArr
=
urlArr
[
1
].
split
(
'#'
)
let
newUrl
=
locationStr
+
'/voucher/#'
+
pathArr
[
1
]
let
newUrl
=
locationStr
+
'/voucher/#'
+
pathArr
[
1
]
window
.
location
.
href
=
newUrl
return
false
}
else
{
...
...
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