From 0c06cbff4f97d1dc6ef05a849fbbae16edf486c6 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Thu, 16 Nov 2023 10:10:44 +0800 Subject: [PATCH] Auto Submit --- layouts__ShixunDetail__index.async.js | 2 +- p__Competitions__Edit__index.async.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts__ShixunDetail__index.async.js b/layouts__ShixunDetail__index.async.js index ed3dcaa481..40292c9260 100644 --- a/layouts__ShixunDetail__index.async.js +++ b/layouts__ShixunDetail__index.async.js @@ -208,7 +208,7 @@ var PublishShixun = function PublishShixun(_ref) { id = (res === null || res === void 0 ? void 0 : res.category_id) || 0; urlList = (_location$pathname = location.pathname) === null || _location$pathname === void 0 ? void 0 : _location$pathname.split('/'); urlList[4] = id; - urlList[3] = type || urlList[3]; + urlList[3] = (type === 'hack' ? 'program_homework' : type) || urlList[3]; url = urlList === null || urlList === void 0 ? void 0 : urlList.join('/'); _umi_production_exports.history.push(url); if (actionTabs.cb) { diff --git a/p__Competitions__Edit__index.async.js b/p__Competitions__Edit__index.async.js index 5b418e9bb7..719a3a86a3 100644 --- a/p__Competitions__Edit__index.async.js +++ b/p__Competitions__Edit__index.async.js @@ -8706,9 +8706,9 @@ var informationPage = function informationPage(_ref) { }, children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", { style: { - width: '32%' + width: '34%' }, - children: [window.location.origin, "/competitions/"] + children: [window.location.origin, "/competitions/detail/"] }), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, { placement: "topLeft", color: "#fb3226", @@ -12761,7 +12761,7 @@ var documentPage = function documentPage(_ref) { setquestion_finish(res === null || res === void 0 ? void 0 : res.question_finish); setname_show(res === null || res === void 0 || (_res$competition = res.competition) === null || _res$competition === void 0 ? void 0 : _res$competition.name); settime_show(dayjs_min_default()(res === null || res === void 0 || (_res$competition2 = res.competition) === null || _res$competition2 === void 0 ? void 0 : _res$competition2.start_time).format('YYYY-MM-DD HH:mm') + ' ~ ' + dayjs_min_default()(res === null || res === void 0 || (_res$competition3 = res.competition) === null || _res$competition3 === void 0 ? void 0 : _res$competition3.end_time).format('YYYY-MM-DD HH:mm')); - seturl_show("".concat(window.location.origin, "/competitions/") + (res === null || res === void 0 ? void 0 : res.identifier) + '/edit'); + seturl_show("".concat(window.location.origin, "/competitions/detail/") + (res === null || res === void 0 ? void 0 : res.identifier)); var obj = ''; for (var i in res === null || res === void 0 ? void 0 : res.data) { if (Number(i) == Number((res === null || res === void 0 ? void 0 : res.data.length) - 1)) {