|
|
@@ -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' })
|