autoUpdataFile

dev_local_v9_gfkjdx
eduauto 1 year ago
parent 8f0faa0ce2
commit 1ae81756d2

@ -452,7 +452,7 @@ var Edit = function Edit(_ref) {
var username = (0,_react_17_0_2_react.useRef)();
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
}, [location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
var _account$basicInfo2, _account$basicInfo3;

@ -457,7 +457,7 @@ var ManageHead = function ManageHead(_ref) {
var username = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
// const active = location.pathname.split('/')?.[3];
// setActiveTab(active);
}, [location.pathname]);

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/umi.0b43b856.js"></script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/umi.56a39a81.js"></script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/js/public.js"></script>
</body>
</html>

@ -284,13 +284,13 @@ try {
}
};
// history.replaceState = function(state, title, url) {
// if(!url) return;
// if(!isPageRefresh()){
// const modifiedUrl = modifyUrl(url);
// originalReplaceState.call(history, state, title, modifiedUrl);
// }
// };
history.replaceState = function(state, title, url) {
if(!url) return;
if(!isPageRefresh()){
const modifiedUrl = modifyUrl(url);
originalReplaceState.call(history, state, title, modifiedUrl);
}
};
// 监听 click 事件
document.addEventListener('click', function(event) {

@ -261,7 +261,7 @@ var Sidebar = function Sidebar(_ref) {
var location = (0,_umi_production_exports.useLocation)();
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
var active = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
var active = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
setActiveKey(active);
}, [location.pathname]);
var avatarImg = "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.image_url);

@ -58,7 +58,7 @@ var Banner = function Banner(_ref) {
setActiveKey = _useState2[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
var active = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
var active = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
setActiveKey(active || NavType.College);
}, [location.pathname]);
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {

@ -763,8 +763,7 @@ var AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -807,8 +806,8 @@ var AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -977,8 +976,7 @@ var AddFile_AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -1023,8 +1021,8 @@ var AddFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -1209,8 +1207,7 @@ var RenameFile_AddFile = function AddFile(_ref) {
}
}, [props.defaultPath]);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -1254,8 +1251,8 @@ var RenameFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "40%",

@ -893,8 +893,7 @@ var AddFile_AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -941,8 +940,8 @@ var AddFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ''));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ''));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",

@ -1061,8 +1061,7 @@ var Challenges = function Challenges(_ref3) {
}
}, [content === null || content === void 0 ? void 0 : content.current]);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
shixunId.current = params.id;
dispatch({
type: 'shixunsDetail/getChallengesData',
payload: {

@ -74,14 +74,14 @@ var Dataset = function Dataset(_ref) {
user = _ref.user,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var shixunId = (0,_react_17_0_2_react.useRef)();
var _useState = (0,_react_17_0_2_react.useState)(),
_useState2 = slicedToArray_default()(_useState, 2),
list = _useState2[0],
setList = _useState2[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
getDataSetList();
}, []);

@ -399,6 +399,7 @@ var AddFile = function AddFile(_ref) {
user = _ref.user,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var location = (0,_umi_production_exports.useLocation)();
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
@ -435,9 +436,9 @@ var AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname, _location$pathname2;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
isRepository.current = ((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]) === "repository";
var _location$pathname;
shixunId.current = params.id;
isRepository.current = ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]) === "repository";
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -477,8 +478,8 @@ var AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname3;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname3 = location.pathname) === null || _location$pathname3 === void 0 || (_location$pathname3 = _location$pathname3.split('/')) === null || _location$pathname3 === void 0 ? void 0 : _location$pathname3[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: AddFilemodules.bg,

@ -247,6 +247,7 @@ var UploadFile = function UploadFile(_ref) {
user = _ref.user,
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, _excluded);
var params = (0,_umi_production_exports.useParams)();
var location = (0,_umi_production_exports.useLocation)();
var _useState = (0,_react_17_0_2_react.useState)({}),
_useState2 = slicedToArray_default()(_useState, 2),
@ -278,9 +279,9 @@ var UploadFile = function UploadFile(_ref) {
};
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname, _location$pathname2;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
isRepository.current = ((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]) === "repository";
var _location$pathname;
shixunId.current = params.id;
isRepository.current = ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]) === "repository";
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var pathArray = sessionStorage.getItem('pathArray');
@ -382,8 +383,8 @@ var UploadFile = function UploadFile(_ref) {
handleReturn();
};
var handleReturn = function handleReturn() {
var _location$pathname3;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname3 = location.pathname) === null || _location$pathname3 === void 0 || (_location$pathname3 = _location$pathname3.split('/')) === null || _location$pathname3 === void 0 ? void 0 : _location$pathname3[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: UploadFilemodules.bg,

@ -1193,6 +1193,7 @@ var BasicInfo = function BasicInfo(_ref) {
dispatch = _ref.dispatch,
props = objectWithoutProperties_default()(_ref, BasicInfo_excluded);
var location = (0,_umi_production_exports.useLocation)();
var params = useParams();
var shixunId = (0,_react_17_0_2_react.useRef)();
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
@ -1227,8 +1228,7 @@ var BasicInfo = function BasicInfo(_ref) {
setVisible = _useState14[1];
var editable = (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 || (_user$userInfo = _user$userInfo.shixun) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.editable;
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if (!shixunsDetail.setting) {
@ -2940,7 +2940,7 @@ var Settings = function Settings(_ref) {
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
dispatch({
type: 'shixunsDetail/getSettingsData',
payload: {

@ -1225,7 +1225,7 @@ var Banner = function Banner(_ref) {
}];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
}, [location.pathname]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
@ -3037,8 +3037,7 @@ var ShixunsDetailPage = function ShixunsDetailPage(_ref) {
});
}, [params.id]);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
setSelectedKeys(formatUrlToTabKey((_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[3]));
setSelectedKeys(formatUrlToTabKey(location.pathname.split("/").pop()));
}, [location.pathname]);
var handleMenuClick = function handleMenuClick(_ref2) {
var item = _ref2.item,

@ -736,8 +736,7 @@ var AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -780,8 +779,8 @@ var AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -947,8 +946,7 @@ var AddFile_AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -995,8 +993,8 @@ var AddFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -1186,8 +1184,7 @@ var RenameFile_AddFile = function AddFile(_ref) {
}
}, [props.defaultPath]);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -1234,8 +1231,8 @@ var RenameFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "40%",

@ -6884,8 +6884,7 @@ var AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -6928,8 +6927,8 @@ var AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -7095,8 +7094,7 @@ var AddFile_AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -7143,8 +7141,8 @@ var AddFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -7334,8 +7332,7 @@ var RenameFile_AddFile = function AddFile(_ref) {
}
}, [props.defaultPath]);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -7382,8 +7379,8 @@ var RenameFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "40%",
@ -9770,8 +9767,7 @@ var Header = function Header(_ref) {
repository_warning = practiceSetting.repository_warning,
mirror_warning = practiceSetting.mirror_warning;
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
shixunId.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
shixunId.current = params.id;
dispatch({
type: 'practiceSetting/setParams',
payload: {

@ -74,7 +74,7 @@ var Profile = function Profile(_ref) {
var username = (0,_react_17_0_2_react.useRef)();
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
}, [location.pathname]);
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: Profilemodules.wrap,

@ -417,7 +417,7 @@ var ManageHead = function ManageHead(_ref) {
var username = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
// const active = location.pathname.split('/')?.[3];
// setActiveTab(active);
}, [location.pathname]);

@ -749,7 +749,7 @@ var Classrooms = function Classrooms(_ref) {
setAffixStatus = _useState18[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
var query = {
category: searchParams.get("category") || '',
status: searchParams.get("status") || '',

@ -503,7 +503,7 @@ var ClassroomListPage = function ClassroomListPage(_ref) {
}];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
}, [location.pathname]);
// 获取镜像详情

@ -332,7 +332,7 @@ var Paths = function Paths(_ref) {
}, [params]);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
var query = {
category: searchParams.get("category") || '',
status: searchParams.get("category") === 'manage' ? tagsTwo.map(function (item) {

@ -250,7 +250,7 @@ var Projects = function Projects(_ref) {
setIsCurrent = _useState8[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
var query = {
category: searchParams.get("category") || '',
status: searchParams.get("status") || '',

@ -1031,7 +1031,7 @@ var Shixuns = function Shixuns(_ref) {
setUnItemid = _useState36[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
var query = {
category: searchParams.get("category") || '',
status: searchParams.get("category") === 'manage' ? tagsTwo.map(function (item) {

@ -1258,7 +1258,7 @@ var Upload = function Upload(_ref) {
setShowSearchText = _useState8[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
params.username = username.current;
setParams(params);
getVideos(params);

@ -137,7 +137,7 @@ var Banner = function Banner(_ref) {
var params = (0,_umi_production_exports.useParams)();
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname$sp, _location$pathname$sp2;
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[5];
var active = (_location$pathname$sp2 = location.pathname.split('/')) === null || _location$pathname$sp2 === void 0 ? void 0 : _location$pathname$sp2[3];
setActiveKey(active || NavType.Classrooms);
}, [location.pathname]);

@ -2632,8 +2632,7 @@ var AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -2676,8 +2675,8 @@ var AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -2846,8 +2845,7 @@ var AddFile_AddFile = function AddFile(_ref) {
}
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -2892,8 +2890,8 @@ var AddFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "60%",
@ -3078,8 +3076,7 @@ var RenameFile_AddFile = function AddFile(_ref) {
}
}, [props.defaultPath]);
(0,_react_17_0_2_react.useEffect)(function () {
var _location$pathname;
shixunId.current = (_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[2];
shixunId.current = params.id;
}, []);
var handleFinish = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
@ -3123,8 +3120,8 @@ var RenameFile_AddFile = function AddFile(_ref) {
};
}();
var handleReturn = function handleReturn() {
var _location$pathname2;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname2 = location.pathname) === null || _location$pathname2 === void 0 || (_location$pathname2 = _location$pathname2.split('/')) === null || _location$pathname2 === void 0 ? void 0 : _location$pathname2[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
var _location$pathname;
_umi_production_exports.history.push("/shixuns/".concat(shixunId.current, "/").concat((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[3]).concat(filePath ? "/master/shixun_show/".concat(filePath) : ""));
};
return /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
width: "40%",

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