forked from Gitlink/forgeplus-react
nav没有显示,被清空
This commit is contained in:
parent
8162b8b908
commit
9ea9da9672
|
@ -3971,7 +3971,9 @@ html>body #ajax-indicator {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 16px;
|
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 {
|
.head-nav ul#header-nav li a {
|
||||||
|
|
|
@ -108,3 +108,4 @@ class Header extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default withStyles(styles)(Header);
|
export default withStyles(styles)(Header);
|
||||||
|
// /images/avatars/LaboratorySetting/1tab?t=1625195016
|
|
@ -278,7 +278,6 @@ class NewHeader extends Component {
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
HideAddcoursestypess = (i) => {
|
HideAddcoursestypess = (i) => {
|
||||||
console.log("调用了");
|
|
||||||
this.setState({
|
this.setState({
|
||||||
Addcoursestypes: false,
|
Addcoursestypes: false,
|
||||||
mydisplay: true,
|
mydisplay: true,
|
||||||
|
@ -497,9 +496,9 @@ class NewHeader extends Component {
|
||||||
}
|
}
|
||||||
//获取数据为空的时候
|
//获取数据为空的时候
|
||||||
gettablogourlnull = () => {
|
gettablogourlnull = () => {
|
||||||
this.setState({
|
// this.setState({
|
||||||
mygetHelmetapi2: undefined
|
// mygetHelmetapi2: undefined
|
||||||
});
|
// });
|
||||||
var link = document.createElement('link'),
|
var link = document.createElement('link'),
|
||||||
oldLink = document.getElementById('dynamic-favicon');
|
oldLink = document.getElementById('dynamic-favicon');
|
||||||
link.id = 'dynamic-favicon';
|
link.id = 'dynamic-favicon';
|
||||||
|
@ -522,6 +521,7 @@ class NewHeader extends Component {
|
||||||
if (oldLink) {
|
if (oldLink) {
|
||||||
document.head.removeChild(oldLink);
|
document.head.removeChild(oldLink);
|
||||||
}
|
}
|
||||||
|
console.log("ac12111:",response.data.setting.tab_logo_url);
|
||||||
document.head.appendChild(link);
|
document.head.appendChild(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -574,8 +574,6 @@ class NewHeader extends Component {
|
||||||
|
|
||||||
matchpaths = (url) => {
|
matchpaths = (url) => {
|
||||||
const { match } = this.props;
|
const { match } = this.props;
|
||||||
console.log(url);
|
|
||||||
console.log(match);
|
|
||||||
|
|
||||||
if(url){
|
if(url){
|
||||||
if (url.indexOf('forums') > -1 && match.path.indexOf('forums') > -1) {
|
if (url.indexOf('forums') > -1 && match.path.indexOf('forums') > -1) {
|
||||||
|
|
Loading…
Reference in New Issue