This commit is contained in:
caishi 2021-02-04 15:13:08 +08:00
parent de550d5f42
commit 617f139f52
1 changed files with 7 additions and 11 deletions

View File

@ -46,8 +46,7 @@ class NewHeader extends Component {
headtypess: "/",
mygetHelmetapi2: null,
goshowqqgtounp: false,
visiblemyss: false,
settingData:undefined
visiblemyss: false
}
}
componentDidMount() {
@ -546,9 +545,7 @@ class NewHeader extends Component {
let url = "/setting.json";
axios.get(url).then((response) => {
if (response && response.data) {
this.setState({
settingData:result.data.setting
})
this.setState({ mygetHelmetapi2: response.data.setting });
try {
if (response.data.setting.tab_logo_url) {
this.gettablogourldata(response);
@ -605,8 +602,7 @@ class NewHeader extends Component {
headtypesonClickbool,
headtypess,
mygetHelmetapi2,
goshowqqgtounp,
settingData
goshowqqgtounp
} = this.state;
/*用户名称 用户头像url*/
let activeIndex = false;
@ -833,25 +829,25 @@ class NewHeader extends Component {
</li>
<li>
<a
href={`${settingData.main_web_site_url}users/${user.login}/profiles`}
href={`${mygetHelmetapi2.main_web_site_url}users/${user.login}/profiles`}
>
账号管理
</a>
</li>
<li>
<a
href={`${settingData.main_web_site_url}users/${user.login}/user_tidings`}
href={`${mygetHelmetapi2.main_web_site_url}users/${user.login}/user_tidings`}
>
我的消息
</a>
</li>
<li>
<a href={`${settingData.main_web_site_url}my/account`}>
<a href={`${mygetHelmetapi2.main_web_site_url}my/account`}>
账号安全
</a>
</li>
<li>
<a href={`${settingData.main_web_site_url}tasks/my_tasks`}>
<a href={`${mygetHelmetapi2.main_web_site_url}tasks/my_tasks`}>
创客管理
</a>
</li>