@gm-mobile/mp-request 3.11.5-beta.0 → 3.12.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gm-mobile/mp-request",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "zhongsink <zhongink@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/gmfe/gm-mobile#readme",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"url": "https://github.com/gmfe/gm-mobile/issues"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@gm-mobile/c-tool": "^3.
|
|
24
|
-
"@gm-mobile/locales": "^3.
|
|
25
|
-
"@gm-mobile/mp": "^3.
|
|
23
|
+
"@gm-mobile/c-tool": "^3.12.0",
|
|
24
|
+
"@gm-mobile/locales": "^3.12.0",
|
|
25
|
+
"@gm-mobile/mp": "^3.12.0",
|
|
26
26
|
"js-base64": "^3.6.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"taro-axios": "^1.1.1",
|
|
31
31
|
"weapp-cookie": "^1.4.6"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "d4065e9124472a8c61e875fca2e3cd364d53177c"
|
|
34
34
|
}
|
|
@@ -56,6 +56,7 @@ export async function configPrivateDomain(defaultBaseUrl: string) {
|
|
|
56
56
|
customized_code: group_customized_code,
|
|
57
57
|
})) || ''
|
|
58
58
|
LocalStorage.set('privateBaseUrl', privateBaseUrl)
|
|
59
|
+
console.log('[configPrivateDomain] 启用自定义域名', privateBaseUrl)
|
|
59
60
|
} else if (wechat_app_id) {
|
|
60
61
|
// 登录3
|
|
61
62
|
const {
|
|
@@ -85,6 +86,9 @@ export async function configPrivateDomain(defaultBaseUrl: string) {
|
|
|
85
86
|
})
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
/** 停用自定义域名 */
|
|
88
90
|
export function clearPrivateDomain() {
|
|
91
|
+
console.log('[configPrivateDomain] 停用自定义域名', privateBaseUrl)
|
|
89
92
|
privateBaseUrl = ''
|
|
93
|
+
LocalStorage.remove('privateBaseUrl')
|
|
90
94
|
}
|