|
|
|
|
@ -17961,15 +17961,22 @@ function reducer(state, action) {
|
|
|
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context3.next = 2;
|
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
resolve('');
|
|
|
|
|
}, 1000);
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
_context3.next = 4;
|
|
|
|
|
return (0,service/* startInit */.sA)((_taskData$myshixun = taskData.myshixun) === null || _taskData$myshixun === void 0 ? void 0 : _taskData$myshixun.identifier, objectSpread2_default()(objectSpread2_default()({}, params), {}, {
|
|
|
|
|
taskId: params.taskId,
|
|
|
|
|
shixun_environment_id: shixun_environment_id,
|
|
|
|
|
tab_type: tab_type
|
|
|
|
|
}));
|
|
|
|
|
case 2:
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context3.sent;
|
|
|
|
|
if (!(res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data = _res$data.data_list) !== null && _res$data !== void 0 && _res$data.length)) {
|
|
|
|
|
_context3.next = 6;
|
|
|
|
|
_context3.next = 8;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
mediator/* default */.Z.publish('pod-restrict-data', {
|
|
|
|
|
@ -17977,9 +17984,9 @@ function reducer(state, action) {
|
|
|
|
|
data_list: res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.data_list
|
|
|
|
|
});
|
|
|
|
|
return _context3.abrupt("return", Promise.reject());
|
|
|
|
|
case 6:
|
|
|
|
|
case 8:
|
|
|
|
|
if (!((res === null || res === void 0 ? void 0 : res.status) === -3)) {
|
|
|
|
|
_context3.next = 8;
|
|
|
|
|
_context3.next = 10;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _context3.abrupt("return", new Promise( /*#__PURE__*/function () {
|
|
|
|
|
@ -18025,15 +18032,15 @@ function reducer(state, action) {
|
|
|
|
|
return _ref3.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}()));
|
|
|
|
|
case 8:
|
|
|
|
|
case 10:
|
|
|
|
|
if (!((res === null || res === void 0 ? void 0 : res.status) === -1)) {
|
|
|
|
|
_context3.next = 10;
|
|
|
|
|
_context3.next = 12;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
throw new String(res === null || res === void 0 ? void 0 : res.message);
|
|
|
|
|
case 10:
|
|
|
|
|
case 12:
|
|
|
|
|
if (!((res === null || res === void 0 ? void 0 : res.status) === 0)) {
|
|
|
|
|
_context3.next = 15;
|
|
|
|
|
_context3.next = 17;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (virtual_machine) {
|
|
|
|
|
@ -18046,7 +18053,7 @@ function reducer(state, action) {
|
|
|
|
|
index_tab: index_tab
|
|
|
|
|
}));
|
|
|
|
|
return _context3.abrupt("return", res);
|
|
|
|
|
case 15:
|
|
|
|
|
case 17:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context3.stop();
|
|
|
|
|
}
|