nav没有显示,被清空

This commit is contained in:
caishi 2021-07-02 11:54:49 +08:00
parent 8162b8b908
commit 9ea9da9672
3 changed files with 8 additions and 7 deletions

View File

@ -3971,7 +3971,9 @@ html>body #ajax-indicator {
cursor: pointer;
position: relative;
font-size: 16px;
padding:0px 20px;
margin-right: 40px;
}.head-nav ul#header-nav li:first-child{
margin-left: 20px;
}
.head-nav ul#header-nav li a {

View File

@ -108,3 +108,4 @@ class Header extends Component {
}
export default withStyles(styles)(Header);
// /images/avatars/LaboratorySetting/1tab?t=1625195016

View File

@ -278,7 +278,6 @@ class NewHeader extends Component {
})
};
HideAddcoursestypess = (i) => {
console.log("调用了");
this.setState({
Addcoursestypes: false,
mydisplay: true,
@ -497,9 +496,9 @@ class NewHeader extends Component {
}
//获取数据为空的时候
gettablogourlnull = () => {
this.setState({
mygetHelmetapi2: undefined
});
// this.setState({
// mygetHelmetapi2: undefined
// });
var link = document.createElement('link'),
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';
@ -522,6 +521,7 @@ class NewHeader extends Component {
if (oldLink) {
document.head.removeChild(oldLink);
}
console.log("ac12111:",response.data.setting.tab_logo_url);
document.head.appendChild(link);
}
@ -574,8 +574,6 @@ class NewHeader extends Component {
matchpaths = (url) => {
const { match } = this.props;
console.log(url);
console.log(match);
if(url){
if (url.indexOf('forums') > -1 && match.path.indexOf('forums') > -1) {