From a4a53dcf104f3ea44cb41c7ca273992c81ad72ae Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 17 Nov 2023 10:26:51 +0800 Subject: [PATCH] Auto Submit --- p__tasks__index.async.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/p__tasks__index.async.js b/p__tasks__index.async.js index 669a8a53f7..b201d6e125 100644 --- a/p__tasks__index.async.js +++ b/p__tasks__index.async.js @@ -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();