iv-npm 1.4.10 → 1.4.12

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.4.10",
3
+ "version": "1.4.12",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -146,9 +146,26 @@ function hostConfiger(key) {
146
146
  ASSET_URL: "https://gateway.nacho.cn"
147
147
  };
148
148
  try {
149
- console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
150
- console.log(process.env.NODE_ENV, "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
151
- console.log(process.env.BASE_URL, "bbbbbbbbbbbbbbbbbbbb");
149
+ if (process.env.VITE_APP_BASE_URL)
150
+ devHost.BASE_URL = process.env.VITE_APP_BASE_URL;
151
+ } catch (error) {
152
+ console.log(error);
153
+ }
154
+ try {
155
+ if (process.env.VITE_APP_MRP_URL)
156
+ devHost.MRP_URL = process.env.VITE_APP_MRP_URL;
157
+ } catch (error) {
158
+ console.log(error);
159
+ }
160
+ try {
161
+ if (process.env.VITE_APP_MRP2_URL)
162
+ devHost.MRP2_URL = process.env.VITE_APP_MRP2_URL;
163
+ } catch (error) {
164
+ console.log(error);
165
+ }
166
+ try {
167
+ if (process.env.VITE_APP_ASSET_URL)
168
+ devHost.ASSET_URL = process.env.VITE_APP_ASSET_URL;
152
169
  } catch (error) {
153
170
  console.log(error);
154
171
  }