@uxda/appkit 4.2.50 → 4.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -105,7 +105,7 @@ const getSdkConfig = (appCode) => {
105
105
  const $http = useHttp$2();
106
106
  $http.get("/wecom/config/getConfig", {
107
107
  appCode: appCode || "loankitMp",
108
- callbackUrl: location.href
108
+ callbackUrl: encodeURIComponent(location.href.split("#")[0])
109
109
  }).then((response) => {
110
110
  resolve(response);
111
111
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.2.50",
3
+ "version": "4.2.51",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -29,7 +29,7 @@ const getSdkConfig = (appCode?: string): Promise<JssdkConfig> => {
29
29
  $http
30
30
  .get('/wecom/config/getConfig', {
31
31
  appCode: appCode || 'loankitMp',
32
- callbackUrl: location.href,
32
+ callbackUrl: encodeURIComponent(location.href.split('#')[0]),
33
33
  })
34
34
  .then((response: JssdkConfig) => {
35
35
  resolve(response)