Browse Source

fix(permission): 修复微信授权跳转时使用错误的url参数问题

修复微信授权跳转时使用了错误的redirect_uri参数,改为使用to.query.url参数进行跳转,确保跳转链接正确性。同时更新了dist目录下的构建文件。
lsc 1 month ago
parent
commit
8ffd6e1bb7
4 changed files with 3 additions and 3 deletions
  1. 0 0
      dist/index.html
  2. 1 1
      dist/report.html
  3. 0 0
      dist/static/js/app.a0c96b36.js
  4. 2 2
      src/permission.js

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 1 - 1
dist/report.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.a0c96b36.js


+ 2 - 2
src/permission.js

@@ -72,9 +72,9 @@ router.beforeEach(async(to, from, next) => {
         const isApp = to.query.isApp ? to.query.isApp : '2'
         if (isApp === '2' && redirect_uri) {
           // window.location.href = `weixin://dl/business/?appid=wxf8a72764a38a40b2&path=pages/index/index&query=${redirect_uri}`
-          window.location.href = decodeURIComponent(redirect_uri)
+          window.location.href = decodeURIComponent(to.query.url)
         } else if (redirect_uri) {
-          window.location.href = decodeURIComponent(redirect_uri)
+          window.location.href = decodeURIComponent(to.query.url)
         } else {
           next({ path: '/appStoreCopy' })
         }

Some files were not shown because too many files changed in this diff