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