@riil-frontend/component-topology 2.15.34 → 2.15.35
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/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.js +25 -25
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/viewer/components/plugins/BaseInfo/index.js +27 -35
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/viewer/components/plugins/BaseInfo/index.js +27 -35
- package/package.json +2 -2
|
@@ -20,7 +20,7 @@ import { updateEdgeExpanded } from "../utils/edgeUtil";
|
|
|
20
20
|
import PluginManager from "./PluginManager";
|
|
21
21
|
import topoFactory from "./topoFactory"; // eslint-disable-next-line no-undef
|
|
22
22
|
|
|
23
|
-
var version = typeof "2.15.
|
|
23
|
+
var version = typeof "2.15.35" === 'string' ? "2.15.35" : null;
|
|
24
24
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
25
25
|
/**
|
|
26
26
|
* 拓扑显示和编辑
|
|
@@ -130,42 +130,34 @@ function BaseInfo(props) {
|
|
|
130
130
|
while (1) {
|
|
131
131
|
switch (_context2.prev = _context2.next) {
|
|
132
132
|
case 0:
|
|
133
|
-
setUserId(
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
_context.next =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
res = _context.sent;
|
|
155
|
-
return _context.abrupt("return", (res === null || res === void 0 ? void 0 : res.user_id) || '');
|
|
156
|
-
|
|
157
|
-
case 7:
|
|
158
|
-
case "end":
|
|
159
|
-
return _context.stop();
|
|
133
|
+
setUserId(function (prev) {
|
|
134
|
+
console.log('获取用户id', prev); // 如果已经获取过,就不再重新获取
|
|
135
|
+
|
|
136
|
+
if (!prev) {
|
|
137
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
138
|
+
var res;
|
|
139
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
140
|
+
while (1) {
|
|
141
|
+
switch (_context.prev = _context.next) {
|
|
142
|
+
case 0:
|
|
143
|
+
_context.next = 2;
|
|
144
|
+
return service.getUserId();
|
|
145
|
+
|
|
146
|
+
case 2:
|
|
147
|
+
res = _context.sent;
|
|
148
|
+
setUserId((res === null || res === void 0 ? void 0 : res.user_id) || '');
|
|
149
|
+
|
|
150
|
+
case 4:
|
|
151
|
+
case "end":
|
|
152
|
+
return _context.stop();
|
|
153
|
+
}
|
|
160
154
|
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
return
|
|
166
|
-
|
|
167
|
-
};
|
|
168
|
-
}());
|
|
155
|
+
}, _callee);
|
|
156
|
+
}))();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return prev;
|
|
160
|
+
});
|
|
169
161
|
|
|
170
162
|
case 1:
|
|
171
163
|
case "end":
|
|
@@ -48,7 +48,7 @@ var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
|
48
48
|
var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
|
-
var version = typeof "2.15.
|
|
51
|
+
var version = typeof "2.15.35" === 'string' ? "2.15.35" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
|
@@ -153,42 +153,34 @@ function BaseInfo(props) {
|
|
|
153
153
|
while (1) {
|
|
154
154
|
switch (_context2.prev = _context2.next) {
|
|
155
155
|
case 0:
|
|
156
|
-
setUserId(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
_context.next =
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
res = _context.sent;
|
|
178
|
-
return _context.abrupt("return", (res === null || res === void 0 ? void 0 : res.user_id) || '');
|
|
179
|
-
|
|
180
|
-
case 7:
|
|
181
|
-
case "end":
|
|
182
|
-
return _context.stop();
|
|
156
|
+
setUserId(function (prev) {
|
|
157
|
+
console.log('获取用户id', prev); // 如果已经获取过,就不再重新获取
|
|
158
|
+
|
|
159
|
+
if (!prev) {
|
|
160
|
+
(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
161
|
+
var res;
|
|
162
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
163
|
+
while (1) {
|
|
164
|
+
switch (_context.prev = _context.next) {
|
|
165
|
+
case 0:
|
|
166
|
+
_context.next = 2;
|
|
167
|
+
return _overview["default"].getUserId();
|
|
168
|
+
|
|
169
|
+
case 2:
|
|
170
|
+
res = _context.sent;
|
|
171
|
+
setUserId((res === null || res === void 0 ? void 0 : res.user_id) || '');
|
|
172
|
+
|
|
173
|
+
case 4:
|
|
174
|
+
case "end":
|
|
175
|
+
return _context.stop();
|
|
176
|
+
}
|
|
183
177
|
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
};
|
|
191
|
-
}());
|
|
178
|
+
}, _callee);
|
|
179
|
+
}))();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return prev;
|
|
183
|
+
});
|
|
192
184
|
|
|
193
185
|
case 1:
|
|
194
186
|
case "end":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.35",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.35/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|