Commit 4aa3e4ae by 潘琦

页面被微信篡改后新连接跳转;

parent a49d4901
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment