iv-npm 1.7.109 → 1.7.112

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": "iv-npm",
3
- "version": "1.7.109",
3
+ "version": "1.7.112",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -83,7 +83,7 @@ declare function buildURL(url: string, params: any): string;
83
83
 
84
84
  declare function apiConfiger(config: any): any;
85
85
 
86
- declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL" | "CCFLOW_URL";
86
+ declare type HostKey = "BASE_URL" | "MRP_URL" | "MRP2_URL" | "ASSET_URL" | "ASSETS_URL" | "GATEWAY_URL" | "SFM_URL" | "CCFLOW_URL" | "SHARECOOL_URL";
87
87
  declare function hostConfiger(key: HostKey): string;
88
88
 
89
89
  declare type formatType = {
@@ -169,6 +169,11 @@ function buildURL(url, params) {
169
169
  var hostname = window.location.hostname.split(".");
170
170
  var protocol = window.location.protocol;
171
171
  function apiConfiger(config) {
172
+ console.log(hostname, "---------hostname");
173
+ console.log(protocol, "---------protocol");
174
+ if (config.requestBase == "SHARECOOL_URL") {
175
+ config.baseURL = process.env.NODE_ENV == "development" ? "/mrp" : `${protocol}//mrp.${hostname[1]}.${hostname[2]}`;
176
+ }
172
177
  if (config.requestBase == "USER_BASE_URL") {
173
178
  config.baseURL = process.env.NODE_ENV == "development" ? "/user" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;
174
179
  }
@@ -236,8 +241,14 @@ function hostConfiger(key) {
236
241
  ASSETS_URL: "https://assets.nacho.cn",
237
242
  GATEWAY_URL: "https://gateway.nacho.cn",
238
243
  SFM_URL: "https://sfm.nacho.cn",
239
- CCFLOW_URL: "https://ccflow.nacho.cn/"
244
+ CCFLOW_URL: "https://ccflow.nacho.cn/",
245
+ SHARECOOL_URL: "https://mrp.sharecool.com/"
240
246
  };
247
+ try {
248
+ if (process.env.VITE_APP_SHARECOOL_URL)
249
+ devHost.SHARECOOL_URL = process.env.VITE_APP_SHARECOOL_URL;
250
+ } catch (error) {
251
+ }
241
252
  try {
242
253
  if (process.env.VITE_APP_BASE_URL)
243
254
  devHost.BASE_URL = process.env.VITE_APP_BASE_URL;
@@ -306,6 +317,9 @@ function hostConfiger(key) {
306
317
  case "CCFLOW_URL":
307
318
  preString = "ccflow";
308
319
  break;
320
+ case "SHARECOOL_URL":
321
+ preString = "mrp";
322
+ break;
309
323
  default:
310
324
  throw new Error("no matching arguments\uFF01");
311
325
  }
@@ -76,6 +76,10 @@ declare const _default: import("vue").DefineComponent<{
76
76
  required: false;
77
77
  default: string;
78
78
  };
79
+ sharecool: {
80
+ type: BooleanConstructor;
81
+ required: false;
82
+ };
79
83
  }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
80
84
  [key: string]: any;
81
85
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -153,6 +157,10 @@ declare const _default: import("vue").DefineComponent<{
153
157
  required: false;
154
158
  default: string;
155
159
  };
160
+ sharecool: {
161
+ type: BooleanConstructor;
162
+ required: false;
163
+ };
156
164
  }>> & {
157
165
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
158
166
  onChange?: ((...args: any[]) => any) | undefined;
@@ -165,5 +173,6 @@ declare const _default: import("vue").DefineComponent<{
165
173
  placeholder: string;
166
174
  title: string;
167
175
  name: string;
176
+ sharecool: boolean;
168
177
  }>;
169
178
  export default _default;