Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent c6ea85ebaf
commit dce9497236

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.bc4cb2c5.js"></script>
<script src="/react/build/umi.ada44e72.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -9490,7 +9490,7 @@ function TipContent() {
mirror_description_multi: mirror_description_multi
};
var cutTime = (0,_react_17_0_2_react.useCallback)(function () {
var _taskData;
var _taskData, _taskData2;
if (!vncTime) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
}
@ -9503,6 +9503,7 @@ function TipContent() {
onResetAllVnc: onResetAllVnc,
toShixun: toShixun,
myshixun: myshixun,
can_reservation: (_taskData2 = taskData) === null || _taskData2 === void 0 ? void 0 : _taskData2.can_reservation,
title: "\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6"
});
}, [vncTime]);
@ -9779,7 +9780,8 @@ function VncTimer(_ref4) {
_ref4$title = _ref4.title,
title = _ref4$title === void 0 ? '' : _ref4$title,
myshixun = _ref4.myshixun,
defaultTime = _ref4.defaultTime;
defaultTime = _ref4.defaultTime,
can_reservation = _ref4.can_reservation;
var _useState17 = (0,_react_17_0_2_react.useState)(defaultTime),
_useState18 = slicedToArray_default()(_useState17, 2),
time = _useState18[0],
@ -9819,7 +9821,9 @@ function VncTimer(_ref4) {
setTime(currentTime);
//其他地方增加了时间,关闭弹框
if (currentTime > FiveMinute) {
setIsPlusTime(false);
if (!can_reservation) {
setIsPlusTime(true);
}
}
}
case 5:
@ -9837,13 +9841,17 @@ function VncTimer(_ref4) {
}, time > 0 ? 1000 : null);
(0,_react_17_0_2_react.useEffect)(function () {
if (time === 300 || time === 180 || time === 60 || time === 0) {
setIsPlusTime(true);
if (!can_reservation) {
setIsPlusTime(true);
}
}
}, [time]);
(0,_react_17_0_2_react.useEffect)(function () {
if (isFirstOpen.current) {
if (defaultTime < FiveMinute) {
setIsPlusTime(true);
if (!can_reservation) {
setIsPlusTime(true);
}
}
isFirstOpen.current = false;
setTime(defaultTime);
@ -9896,7 +9904,9 @@ function VncTimer(_ref4) {
}
function callback() {
if (time < FiveMinute) {
setIsPlusTime(true);
if (!can_reservation) {
setIsPlusTime(true);
}
}
}
return /*#__PURE__*/(0,jsx_runtime.jsxs)(_react_17_0_2_react.Fragment, {

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save