coolcare-lite-scada-component 1.0.0 → 1.0.1
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/es/services/request.js +3 -2
- package/es/typings.d.ts +1 -1
- package/package.json +2 -1
package/es/services/request.js
CHANGED
|
@@ -90,7 +90,8 @@ export function setRequestENV(env) {
|
|
|
90
90
|
var requestPrefixMap = {
|
|
91
91
|
dev: 'https://dev.sinocold.com:30443',
|
|
92
92
|
prod: 'https://iot.sinocold.net',
|
|
93
|
-
staging: 'https://dev.sinocold.com:30443'
|
|
93
|
+
staging: 'https://dev.sinocold.com:30443',
|
|
94
|
+
generalfushi: 'https://iot.generalfushi.com'
|
|
94
95
|
};
|
|
95
96
|
var requestClient = extend({
|
|
96
97
|
errorHandler: errorHandler
|
|
@@ -103,7 +104,7 @@ requestClient.use( /*#__PURE__*/function () {
|
|
|
103
104
|
case 0:
|
|
104
105
|
req = ctx.req;
|
|
105
106
|
url = req.url;
|
|
106
|
-
ctx.req.url = "".concat(requestPrefixMap[Request_ENV]).concat(url);
|
|
107
|
+
ctx.req.url = "".concat(REACT_APP_PLATFORM && requestPrefixMap[REACT_APP_PLATFORM] ? requestPrefixMap[REACT_APP_PLATFORM] : requestPrefixMap[Request_ENV]).concat(url);
|
|
107
108
|
_context.next = 5;
|
|
108
109
|
return next();
|
|
109
110
|
case 5:
|
package/es/typings.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coolcare-lite-scada-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "umi dev",
|
|
6
6
|
"build:prod": "UMI_ENV=prod umi build",
|
|
7
|
+
"build:generalfushi": "UMI_ENV=prod REACT_APP_PLATFORM=generalfushi umi build",
|
|
7
8
|
"build:staging": "UMI_ENV=staging umi build",
|
|
8
9
|
"build:component": "father build",
|
|
9
10
|
"postinstall": "umi generate tmp",
|