|
|
|
|
@ -15690,23 +15690,20 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
setNotification(true);
|
|
|
|
|
_context2.next = 3;
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
return (0,service/* setStartPermanent */.Ye)(shixun.identifier, {
|
|
|
|
|
start_permanent: !start_permanent
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
if (!(res.status === 0)) {
|
|
|
|
|
_context2.next = 8;
|
|
|
|
|
_context2.next = 7;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
notification/* default */.Z.destroy(initTipsOpenKey.current);
|
|
|
|
|
message/* default */.ZP.success("\u5B9E\u8BAD\u5DF2".concat(start_permanent ? '关闭' : '开启', "\u4FDD\u5B58\u5B9E\u9A8C\u6587\u4EF6\u529F\u80FD"));
|
|
|
|
|
return _context2.abrupt("return");
|
|
|
|
|
case 8:
|
|
|
|
|
setNotification(false);
|
|
|
|
|
case 9:
|
|
|
|
|
case 7:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
@ -15785,8 +15782,10 @@ function code_repository_reducer(state, action) {
|
|
|
|
|
key: initTipsOpenKey.current
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
setNotification();
|
|
|
|
|
|
|
|
|
|
// setNotification()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!initTips.current[1] && item.resource_type === 2 && !tipsItem.includes(uinKey) && now > timeValue) {
|
|
|
|
|
initTips.current[1] = true;
|
|
|
|
|
setCurrentTime();
|
|
|
|
|
|