Auto Submit

dev_local_v9_test5
autosubmit 2 years ago
parent 00cd2992d7
commit ef16e5b09d

@ -2154,7 +2154,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
//筛选头部导航数据学生账号不展示试卷库hidden为true的需要隐藏
var visibleNavBar = (0,lodash.cloneDeep)(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar); //登录跳转不加这个会渲染以前的数据
visibleNavBar = (_visibleNavBar = visibleNavBar) === null || _visibleNavBar === void 0 ? void 0 : _visibleNavBar.filter(function (item) {
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && item.link === '/paperlibrary');
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && (item === null || item === void 0 ? void 0 : item.link) === '/paperlibrary');
});
var _iterator = createForOfIteratorHelper_default()(visibleNavBar),
_step;
@ -2163,7 +2163,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
var visibleItem = _step.value;
if (visibleItem.subitem) {
visibleItem.subitem = visibleItem.subitem.filter(function (item) {
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && item.link === '/paperlibrary');
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && (item === null || item === void 0 ? void 0 : item.link) === '/paperlibrary');
});
}
}
@ -2174,9 +2174,9 @@ var HeaderComponents = function HeaderComponents(_ref) {
}
var hasMatchedUrl = false;
(_visibleNavBar2 = visibleNavBar) === null || _visibleNavBar2 === void 0 || _visibleNavBar2.map(function (val, key) {
var _location$pathname, _val$subitem;
var _location$pathname, _val$link, _val$subitem;
var path = '/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1]);
if (val.link === path || val.link.indexOf(path) > -1) {
if ((val === null || val === void 0 ? void 0 : val.link) === path || (val === null || val === void 0 || (_val$link = val.link) === null || _val$link === void 0 ? void 0 : _val$link.indexOf(path)) > -1) {
setActiveKey(val === null || val === void 0 ? void 0 : val.link);
(0,util/* setDocumentTitle */.Dk)(dealStr(val === null || val === void 0 ? void 0 : val.name));
setNavBar(footerDeal(key, {

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.95ebede8.js"></script>
<script src="/react/build/umi.c4594843.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

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