|
|
|
|
@ -1462,7 +1462,7 @@ var User = function User(_ref) {
|
|
|
|
|
className: "".concat(Usermodules.rightMenu, " ").concat(Usermodules.menuWrap),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
|
|
|
to: "/users/".concat((_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.login, "/classrooms"),
|
|
|
|
|
to: "/users/".concat((_user$userInfo7 = user.userInfo) === null || _user$userInfo7 === void 0 ? void 0 : _user$userInfo7.login, "/vspaces"),
|
|
|
|
|
children: "\u6211\u7684\u4E2A\u4EBA\u4E3B\u9875"
|
|
|
|
|
})
|
|
|
|
|
}), !isClassroomsHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
|
|
|
|
@ -1611,7 +1611,9 @@ var User = function User(_ref) {
|
|
|
|
|
alt: "",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
var _user$userInfo20;
|
|
|
|
|
return _umi_production_exports.history.push((0,util/* checkIsClientExam */.Ll)() ? '/account/profile' : "/users/".concat((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.login, "/classrooms"));
|
|
|
|
|
return _umi_production_exports.history.push((0,util/* checkIsClientExam */.Ll)() ? '/account/profile'
|
|
|
|
|
// : `/users/${user.userInfo?.login}/classrooms`,
|
|
|
|
|
: "/users/".concat((_user$userInfo20 = user.userInfo) === null || _user$userInfo20 === void 0 ? void 0 : _user$userInfo20.login, "/vspaces"));
|
|
|
|
|
}
|
|
|
|
|
}), (0,util/* checkIsClientExam */.Ll)() && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "ml10 font16",
|