forked from Gitlink/forgeplus-react
url
This commit is contained in:
parent
1df2639cd5
commit
f12230dc91
|
@ -13,11 +13,9 @@ import 'antd/lib/radio/style/index.css';
|
|||
import 'antd/lib/input/style/index.css';
|
||||
import './TPMIndex.css';
|
||||
import logo from './images/logo.png';
|
||||
import { result } from 'lodash';
|
||||
|
||||
const $ = window.$
|
||||
// TODO 这部分脚本从公共脚本中直接调用
|
||||
const { Search } = Input;
|
||||
let old_url;
|
||||
|
||||
window._header_componentHandler = null;
|
||||
// 非trustie链接则新开页跳转
|
||||
|
@ -50,6 +48,7 @@ class NewHeader extends Component {
|
|||
mygetHelmetapi2: null,
|
||||
goshowqqgtounp: false,
|
||||
visiblemyss: false,
|
||||
settingData:undefined
|
||||
}
|
||||
}
|
||||
componentDidMount() {
|
||||
|
@ -552,11 +551,9 @@ class NewHeader extends Component {
|
|||
let url = "/setting.json";
|
||||
axios.get(url).then((response) => {
|
||||
if (response && response.data) {
|
||||
this.setState({ mygetHelmetapi2: response.data.setting }, () => {
|
||||
console.log('');
|
||||
});
|
||||
// localStorage.setItem('chromesetting', JSON.stringify(response.data.setting));
|
||||
// localStorage.setItem('chromesettingresponse', JSON.stringify(response));
|
||||
this.setState({
|
||||
settingData:result.data.setting
|
||||
})
|
||||
try {
|
||||
if (response.data.setting.tab_logo_url) {
|
||||
this.gettablogourldata(response);
|
||||
|
@ -614,6 +611,7 @@ class NewHeader extends Component {
|
|||
headtypess,
|
||||
mygetHelmetapi2,
|
||||
goshowqqgtounp,
|
||||
settingData
|
||||
} = this.state;
|
||||
/*用户名称 用户头像url*/
|
||||
let activeIndex = false;
|
||||
|
@ -840,25 +838,25 @@ class NewHeader extends Component {
|
|||
</li>
|
||||
<li>
|
||||
<a
|
||||
href={`http://39.105.176.215/users/${user.login}/profiles`}
|
||||
href={`${settingData.main_web_site_url}users/${user.login}/profiles`}
|
||||
>
|
||||
账号管理
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a
|
||||
href={`http://39.105.176.215/users/${user.login}/user_tidings`}
|
||||
href={`${settingData.main_web_site_url}users/${user.login}/user_tidings`}
|
||||
>
|
||||
我的消息
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href={"http://39.105.176.215/my/account"}>
|
||||
<a href={`${settingData.main_web_site_url}my/account`}>
|
||||
账号安全
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href={"http://39.105.176.215/tasks/my_tasks"}>
|
||||
<a href={`${settingData.main_web_site_url}tasks/my_tasks`}>
|
||||
创客管理
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue