Browse Source

fix(permission): 修复跳转时未清除redirectUri Cookie的问题

移除跳转时清除redirectUri Cookie的代码,避免在跳转前清除导致后续逻辑无法获取该值
lsc 1 month ago
parent
commit
1d9002ce34
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.c8cf6850.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.c8cf6850.js


+ 2 - 2
src/permission.js

@@ -77,13 +77,13 @@ router.beforeEach(async(to, from, next) => {
         //   window.location.href = decodeURIComponent(to.query.url)
         // } else if (redirect_uri) {
         //   window.location.href = decodeURIComponent(to.query.url)
-        
+
         const redirect_uri = to.query.url ? to.query.url : Cookies.get('redirectUri') || ''
         // 从 URL 参数或 Cookie 中获取 isApp
         // const isApp = to.query.isApp ? to.query.isApp : Cookies.get('isApp') || '2'
         if (redirect_uri) {
           // 如果有 redirect_uri,清除 Cookie 并跳转
-          Cookies.remove('redirectUri')
+          // Cookies.remove('redirectUri')
           window.location.href = decodeURIComponent(redirect_uri)
         } else {
           next({ path: '/appStoreCopy' })

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