@riil-frontend/component-topology 12.0.0-dev.35 → 12.0.0-dev.36

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.
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
24
24
  import SelectionModel from "./SelectionModel";
25
25
  import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
26
26
 
27
- var version = typeof "12.0.0-dev.35" === 'string' ? "12.0.0-dev.35" : null;
27
+ var version = typeof "12.0.0-dev.36" === 'string' ? "12.0.0-dev.36" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -31,13 +31,16 @@ import NetworkBaseInfo from "./NetworkBaseInfo";
31
31
  import { formatMetric } from "../../../../../../utils/metricUtil"; // url 处理,UICBB 的地址需截取前缀
32
32
 
33
33
  function formatUrl(url) {
34
- var _window, _window$location;
34
+ var _window, _window$location, _window2, _window2$location;
35
35
 
36
36
  var prefix = '/default/pagecenter';
37
+ console.log('window?.location?.pathname', (_window = window) === null || _window === void 0 ? void 0 : (_window$location = _window.location) === null || _window$location === void 0 ? void 0 : _window$location.pathname, url);
37
38
 
38
- if (((_window = window) === null || _window === void 0 ? void 0 : (_window$location = _window.location) === null || _window$location === void 0 ? void 0 : _window$location.pathname.indexOf(prefix)) !== '-1' && (url === null || url === void 0 ? void 0 : url.indexOf(prefix)) !== '-1') {
39
+ if (((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$location = _window2.location) === null || _window2$location === void 0 ? void 0 : _window2$location.pathname.indexOf(prefix)) === 0 && (url === null || url === void 0 ? void 0 : url.indexOf(prefix)) === 0) {
39
40
  return url.split(prefix)[1];
40
- } else {}
41
+ } else {
42
+ return url;
43
+ }
41
44
  }
42
45
  /**
43
46
  * 资源概览。
@@ -54,7 +54,7 @@ var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
54
54
  var _CiCache = _interopRequireDefault(require("./cache/CiCache"));
55
55
 
56
56
  // eslint-disable-next-line no-undef
57
- var version = typeof "12.0.0-dev.35" === 'string' ? "12.0.0-dev.35" : null;
57
+ var version = typeof "12.0.0-dev.36" === 'string' ? "12.0.0-dev.36" : null;
58
58
  console.info("\u62D3\u6251\u7248\u672C: " + version);
59
59
  /**
60
60
  * 拓扑显示和编辑
@@ -65,13 +65,16 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
65
65
 
66
66
  // url 处理,UICBB 的地址需截取前缀
67
67
  function formatUrl(url) {
68
- var _window, _window$location;
68
+ var _window, _window$location, _window2, _window2$location;
69
69
 
70
70
  var prefix = '/default/pagecenter';
71
+ console.log('window?.location?.pathname', (_window = window) === null || _window === void 0 ? void 0 : (_window$location = _window.location) === null || _window$location === void 0 ? void 0 : _window$location.pathname, url);
71
72
 
72
- if (((_window = window) === null || _window === void 0 ? void 0 : (_window$location = _window.location) === null || _window$location === void 0 ? void 0 : _window$location.pathname.indexOf(prefix)) !== '-1' && (url === null || url === void 0 ? void 0 : url.indexOf(prefix)) !== '-1') {
73
+ if (((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$location = _window2.location) === null || _window2$location === void 0 ? void 0 : _window2$location.pathname.indexOf(prefix)) === 0 && (url === null || url === void 0 ? void 0 : url.indexOf(prefix)) === 0) {
73
74
  return url.split(prefix)[1];
74
- } else {}
75
+ } else {
76
+ return url;
77
+ }
75
78
  }
76
79
  /**
77
80
  * 资源概览。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "12.0.0-dev.35",
3
+ "version": "12.0.0-dev.36",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -123,6 +123,6 @@
123
123
  "access": "public"
124
124
  },
125
125
  "license": "MIT",
126
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@12.0.0-dev.35/build/index.html",
126
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@12.0.0-dev.36/build/index.html",
127
127
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
128
128
  }