lsc 6 ngày trước cách đây
mục cha
commit
a95cc7e7e2
4 tập tin đã thay đổi với 4 bổ sung6 xóa
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.c88eeba2.js
  4. 3 5
      src/permission.js

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.html


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/report.html


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.c88eeba2.js


+ 3 - 5
src/permission.js

@@ -43,12 +43,10 @@ router.beforeEach(async(to, from, next) => {
       if (isWeChat === '1') {
         next({ path: '/' })
       } 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) {
-          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) {
           window.location.href = redirect_uri
         } else {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác