autoUpdataFile

dev_local_v9_brain_cloud_competitions
eduauto 1 year ago
parent 457391706d
commit 770dafe09d

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

@ -18757,7 +18757,10 @@ var NewCompetitionsPage = function NewCompetitionsPage(_ref) {
_context5.next = 4;
return (0,fetch/* default */.ZP)("/api/competitions/".concat(identifier, "/competition_teams").concat(mode === 1 ? '' : '/join', ".json"), {
method: 'POST',
body: body
// body
body: searchParams.get("competition_invite_code") ? objectSpread2_default()({
competition_invite_code: searchParams.get("competition_invite_code")
}, body) : body
});
case 4:
res = _context5.sent;

@ -131,6 +131,9 @@ var competitionsPage = function competitionsPage(_ref) {
_useState4 = slicedToArray_default()(_useState3, 2),
tableData = _useState4[0],
setTableData = _useState4[1];
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
searchParams = _useSearchParams2[0];
var copyText = function copyText() {
var input = document.createElement('input'); //不会保留文本格式
//如果要保留文本格式,比如保留换行符,或者多行文本,可以使用 textarea 标签,再配和模板字符串 ` `
@ -195,10 +198,10 @@ var competitionsPage = function competitionsPage(_ref) {
}();
var handleListClick = function handleListClick(item) {
if ((item === null || item === void 0 ? void 0 : item.competition_status) != "nearly_published") {
(0,util/* openNewWindow */.xg)("/competitions/detail/".concat(item.identifier));
searchParams.get("competition_invite_code") ? (0,util/* openNewWindow */.xg)("/competitions/detail/".concat(item.identifier, "?competition_invite_code=").concat(searchParams.get("competition_invite_code"))) : (0,util/* openNewWindow */.xg)("/competitions/detail/".concat(item.identifier));
return;
}
(0,util/* openNewWindow */.xg)("/competitions/detail/".concat(item.identifier, "?type=3"));
searchParams.get("competition_invite_code") ? (0,util/* openNewWindow */.xg)("/competitions/detail/".concat(item.identifier, "?type=3&competition_invite_code=").concat(searchParams.get("competition_invite_code"))) : (0,util/* openNewWindow */.xg)("/competitions/detail/".concat(item.identifier, "?type=3"));
};
(0,_react_17_0_2_react.useEffect)(function () {
getData();

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