iv-npm 1.5.29 → 1.5.31
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 +1 -1
- package/packages/shared/dist/utils/index.d.ts +1 -1
- package/packages/shared/dist/utils/index.mjs +8 -1
- package/packages/ui/dist/index.cjs.js +1 -1
- package/packages/ui/dist/index.cjs.js.map +1 -1
- package/packages/ui/dist/index.esm.js +1 -1
- package/packages/ui/dist/index.esm.js.map +1 -1
- package/packages/ui/dist/index.umd.js +1 -1
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ declare function buildURL(url: string, params: any): string;
|
|
|
48
48
|
|
|
49
49
|
declare function apiConfiger(config: any): any;
|
|
50
50
|
|
|
51
|
-
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "GATEWAY_URL";
|
|
51
|
+
declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "GATEWAY_URL" | "SFM_URL";
|
|
52
52
|
declare function hostConfiger(key: HostKey): string;
|
|
53
53
|
|
|
54
54
|
declare type formatType = {
|
|
@@ -133,6 +133,9 @@ function apiConfiger(config) {
|
|
|
133
133
|
if (config.requestBase == "GATEWAY_URL") {
|
|
134
134
|
config.baseURL = process.env.NODE_ENV == "development" ? "/gateway" : `${protocol}//gateway.${hostname[1]}.${hostname[2]}`;
|
|
135
135
|
}
|
|
136
|
+
if (config.requestBase == "SFM_URL") {
|
|
137
|
+
config.baseURL = process.env.NODE_ENV == "development" ? "/sfm" : `${protocol}//sfm.${hostname[1]}.${hostname[2]}`;
|
|
138
|
+
}
|
|
136
139
|
return config;
|
|
137
140
|
}
|
|
138
141
|
|
|
@@ -146,7 +149,8 @@ function hostConfiger(key) {
|
|
|
146
149
|
MRP_URL: "https://mrp.nacho.cn",
|
|
147
150
|
MRP2_URL: "https://mrp2.nacho.cn",
|
|
148
151
|
ASSET_URL: "https://gateway.nacho.cn",
|
|
149
|
-
GATEWAY_URL: "https://gateway.nacho.cn"
|
|
152
|
+
GATEWAY_URL: "https://gateway.nacho.cn",
|
|
153
|
+
SFM_URL: "https://sfm.nacho.cn"
|
|
150
154
|
};
|
|
151
155
|
try {
|
|
152
156
|
if (process.env.VITE_APP_BASE_URL)
|
|
@@ -215,6 +219,9 @@ function hostConfiger(key) {
|
|
|
215
219
|
case "GATEWAY_URL":
|
|
216
220
|
preString = "gateway";
|
|
217
221
|
break;
|
|
222
|
+
case "SFM_URL":
|
|
223
|
+
preString = "sfm";
|
|
224
|
+
break;
|
|
218
225
|
default:
|
|
219
226
|
throw new Error("no matching arguments\uFF01");
|
|
220
227
|
}
|