diff --git a/src/App.js b/src/App.js index e93332727..718017d6f 100644 --- a/src/App.js +++ b/src/App.js @@ -140,7 +140,7 @@ class App extends Component { pathname && this.getPathnameType(pathname); // 添加路由监听,决定组织还是个人 - this.unlisten = this.props.history.listen((location) => { + this.unlisten = this.props.history.listen((location,history) => { let newPathname = location.pathname.split('/')[1]; if (this.state.pathName !== newPathname) { // this.setState({ pathType: '' }); diff --git a/src/AppConfig.js b/src/AppConfig.js index 665e85f0f..faef3bd25 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -36,7 +36,7 @@ export function initAxiosInterceptors(props) { //响应前的设置 axios.interceptors.request.use( config => { - if(config.url.indexOf("http") !== -1) { + if(config.url.substr(0, 4) === "http") { return config } requestProxy(config); diff --git a/src/forge/DevOps/OpsDetailLeftpanel.jsx b/src/forge/DevOps/OpsDetailLeftpanel.jsx index 9d9fefd9c..2dff8d81f 100644 --- a/src/forge/DevOps/OpsDetailLeftpanel.jsx +++ b/src/forge/DevOps/OpsDetailLeftpanel.jsx @@ -5,7 +5,7 @@ import { Menu, Popconfirm } from "antd"; import { TagsLine } from "../Component/OpsStatus"; import { Time } from "../Utils/Time"; import { truncateCommitId } from "../common/util"; -import { getUrl } from 'educoder'; +import { getImageUrl } from 'educoder'; const SubMenu = Menu.SubMenu; const Img = styled.img` @@ -70,7 +70,7 @@ export default ({ data, repeatSet , chooseSteps }) => {