浏览代码

Merge branch 'iteration-20240410-music' into jenkins

lex 11 月之前
父节点
当前提交
907fa234fe
共有 1 个文件被更改,包括 6 次插入2 次删除
  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({