|
@@ -43,12 +43,10 @@ router.beforeEach(async(to, from, next) => {
|
|
if (isWeChat === '1') {
|
|
if (isWeChat === '1') {
|
|
next({ path: '/' })
|
|
next({ path: '/' })
|
|
} else {
|
|
} else {
|
|
- const redirect_uri = Cookies.get('redirectUri')
|
|
|
|
- const isApp = Cookies.get('isApp')
|
|
|
|
|
|
+ const redirect_uri = to.query.url ? decodeURIComponent(to.query.url) : ''
|
|
|
|
+ const isApp = to.query.isApp ? to.query.isApp : '2'
|
|
if (isApp === '2' && redirect_uri) {
|
|
if (isApp === '2' && redirect_uri) {
|
|
- window.location.href = `weixin://dl/business/?appid=${
|
|
|
|
- this.wechatConfig.appId
|
|
|
|
- }&path=pages/index/index&query=${encodeURIComponent(redirect_uri)}`
|
|
|
|
|
|
+ window.location.href = `weixin://dl/business/?appid=${this.wechatConfig.appId}&path=pages/index/index&query=${redirect_uri}`
|
|
} else if (redirect_uri) {
|
|
} else if (redirect_uri) {
|
|
window.location.href = redirect_uri
|
|
window.location.href = redirect_uri
|
|
} else {
|
|
} else {
|