|
|
|
|
@ -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: {
|