You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.9 KiB
68 lines
2.9 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64017],{
|
|
|
|
/***/ 89283:
|
|
/*!**************************************************************************!*\
|
|
!*** ./src/pages/Classrooms/Lists/PlaceholderPage/index.tsx + 1 modules ***!
|
|
\**************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
// ESM COMPAT FLAG
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
// EXPORTS
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
"default": function() { return /* binding */ Lists_PlaceholderPage; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
|
|
var spin = __webpack_require__(71418);
|
|
// EXTERNAL MODULE: ./src/layouts/index.less?modules
|
|
var layoutsmodules = __webpack_require__(80580);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/layouts/Loading.tsx
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var Loading = (function () {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
|
size: 'middle',
|
|
className: layoutsmodules/* default */.Z.loading
|
|
});
|
|
});
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(63350);
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/PlaceholderPage/index.tsx
|
|
|
|
|
|
|
|
|
|
var PlaceholderPage = function PlaceholderPage(_ref) {
|
|
var classroomList = _ref.classroomList,
|
|
match = _ref.match;
|
|
var params = (0,_umi_production_exports.useParams)();
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
var detailLeftMenus = classroomList.detailLeftMenus;
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _location$pathname;
|
|
if (detailLeftMenus !== null && detailLeftMenus !== void 0 && detailLeftMenus.course_modules && !((_location$pathname = location.pathname) !== null && _location$pathname !== void 0 && _location$pathname.includes('students'))) {
|
|
var _detailLeftMenus$cour;
|
|
_umi_production_exports.history.replace("/classrooms/".concat(params.coursesId, "/").concat(detailLeftMenus === null || detailLeftMenus === void 0 || (_detailLeftMenus$cour = detailLeftMenus.course_modules) === null || _detailLeftMenus$cour === void 0 || (_detailLeftMenus$cour = _detailLeftMenus$cour[0]) === null || _detailLeftMenus$cour === void 0 ? void 0 : _detailLeftMenus$cour.type));
|
|
}
|
|
}, [detailLeftMenus === null || detailLeftMenus === void 0 ? void 0 : detailLeftMenus.course_modules, params.coursesId]);
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Loading, {});
|
|
};
|
|
/* harmony default export */ var Lists_PlaceholderPage = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
var classroomList = _ref2.classroomList;
|
|
return {
|
|
classroomList: classroomList
|
|
};
|
|
})(PlaceholderPage));
|
|
|
|
/***/ })
|
|
|
|
}]); |