coolcare-lite-scada-component 2.0.11 → 2.0.13
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.
|
@@ -80,7 +80,7 @@ var Display = function Display(_ref) {
|
|
|
80
80
|
return v.productConfigurationType === Number(query.scadaType);
|
|
81
81
|
});
|
|
82
82
|
if (activeConfig) {
|
|
83
|
-
setJsonConfig(JSON.parse(activeConfig.config || '{}'));
|
|
83
|
+
setJsonConfig(JSON.parse((activeConfig.config || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/')));
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
_context.next = 17;
|
|
@@ -188,7 +188,7 @@ var Display = function Display(_ref) {
|
|
|
188
188
|
case 10:
|
|
189
189
|
scadaConfig = data.list[0].config;
|
|
190
190
|
if (scadaConfig) {
|
|
191
|
-
setJsonConfig(JSON.parse(scadaConfig || '{}'));
|
|
191
|
+
setJsonConfig(JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/')));
|
|
192
192
|
}
|
|
193
193
|
_context3.next = 18;
|
|
194
194
|
break;
|
package/es/pages/editor/index.js
CHANGED
|
@@ -207,7 +207,7 @@ export default (function () {
|
|
|
207
207
|
case 10:
|
|
208
208
|
scadaConfig = data.list[0].config;
|
|
209
209
|
if (scadaConfig) {
|
|
210
|
-
configJSON = JSON.parse(scadaConfig || '{}');
|
|
210
|
+
configJSON = JSON.parse((scadaConfig || '{}').replaceAll('https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/', '/').replaceAll('https://front-end-assets.oss-cn-shanghai.aliyuncs.com/', '/'));
|
|
211
211
|
graphCore.graph.fromJSON(configJSON);
|
|
212
212
|
if (configJSON.pageConfig) {
|
|
213
213
|
setPageConfig(configJSON.pageConfig);
|