@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.
@@ -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.34" === 'string' ? "2.15.34" : null;
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( /*#__PURE__*/function () {
134
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(prev) {
135
- var res;
136
- return _regeneratorRuntime.wrap(function _callee$(_context) {
137
- while (1) {
138
- switch (_context.prev = _context.next) {
139
- case 0:
140
- console.log('获取用户id', prev); // 如果已经获取过,就不再重新获取
141
-
142
- if (!prev) {
143
- _context.next = 3;
144
- break;
145
- }
146
-
147
- return _context.abrupt("return", prev);
148
-
149
- case 3:
150
- _context.next = 5;
151
- return service.getUserId();
152
-
153
- case 5:
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
- }, _callee);
163
- }));
164
-
165
- return function (_x) {
166
- return _ref2.apply(this, arguments);
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.34" === 'string' ? "2.15.34" : null;
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( /*#__PURE__*/function () {
157
- var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(prev) {
158
- var res;
159
- return _regenerator["default"].wrap(function _callee$(_context) {
160
- while (1) {
161
- switch (_context.prev = _context.next) {
162
- case 0:
163
- console.log('获取用户id', prev); // 如果已经获取过,就不再重新获取
164
-
165
- if (!prev) {
166
- _context.next = 3;
167
- break;
168
- }
169
-
170
- return _context.abrupt("return", prev);
171
-
172
- case 3:
173
- _context.next = 5;
174
- return _overview["default"].getUserId();
175
-
176
- case 5:
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
- }, _callee);
186
- }));
187
-
188
- return function (_x) {
189
- return _ref2.apply(this, arguments);
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.34",
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.34/build/index.html",
113
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.35/build/index.html",
114
114
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
115
115
  }