forked from Gitlink/forgeplus-react
解决代理路径的冲突
This commit is contained in:
commit
4cd32dfe52
|
@ -32,8 +32,7 @@ export function initAxiosInterceptors(props) {
|
|||
// 判断网络是否连接
|
||||
initOnlineOfflineListener();
|
||||
|
||||
// var proxy = "http://192.168.1.40:3000";
|
||||
var proxy = "http://117.50.100.12:49999";
|
||||
var proxy = "http://111.8.36.180:8000";
|
||||
//响应前的设置
|
||||
axios.interceptors.request.use(
|
||||
config => {
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'antd/lib/input/style/index.css';
|
|||
import './TPMIndex.css';
|
||||
import './css/headerExcess.css';
|
||||
import logo from './images/hskylogo.png';
|
||||
import AddProjectModal from '../../forge/Head/AddProjectModal';
|
||||
|
||||
const $ = window.$
|
||||
// TODO 这部分脚本从公共脚本中直接调用
|
||||
|
@ -754,6 +755,9 @@ class NewHeader extends Component {
|
|||
)
|
||||
})
|
||||
}
|
||||
<li>
|
||||
<AddProjectModal {...this.props} showNotification={this.props.showNotification}/>
|
||||
</li>
|
||||
</ul>
|
||||
}
|
||||
</div>
|
||||
|
@ -812,7 +816,7 @@ class NewHeader extends Component {
|
|||
<div className="ml30 edu-menu-panel" style={{ height: "70px", lineHeight: "70px" }}>
|
||||
<a href={`/${this.props.current_user === undefined ? "" : this.props.current_user.login}/courses`}>
|
||||
<img alt="头像" className="radius" height="34" id="nh_user_logo" name="avatar_image"
|
||||
src={getImageUrl(`images/` + user.image_url)} width="34">
|
||||
src={getImageUrl(`/` + user.image_url)} width="34">
|
||||
</img>
|
||||
</a>
|
||||
<ul className="edu-menu-list" style={{ top: '60px', textAlign: 'center' }}>
|
||||
|
|
|
@ -1000,7 +1000,7 @@ class NewHeader extends Component {
|
|||
height="34"
|
||||
id="nh_user_logo"
|
||||
name="avatar_image"
|
||||
src={getImageUrl(`images/` + user.image_url)}
|
||||
src={getImageUrl(`/` + user.image_url)}
|
||||
width="34"
|
||||
></img>
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue