Parcourir la source

Merge branch 'iteration-20240410-music' into jenkins

lex il y a 11 mois
Parent
commit
907fa234fe
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      src/views/shop-mall/index.tsx

+ 6 - 2
src/views/shop-mall/index.tsx

@@ -113,9 +113,13 @@ export default defineComponent({
 
         if (state.sourcType === 'kt') {
           if (url.indexOf('?') !== -1) {
-            url += `&Authorization=${getAuth()}&source=kt`
+            url += `&Authorization=${encodeURI(
+              (getAuth() as any) || ''
+            )}&source=kt`
           } else {
-            url += `?Authorization=${getAuth()}&source=kt`
+            url += `?Authorization=${encodeURI(
+              (getAuth() as any) || ''
+            )}&source=kt`
           }
         }
         postMessage({