forked from Gitlink/forgeplus-react
feat: 祛除打印以及放开动态文件
This commit is contained in:
parent
a39c1ee1e1
commit
0ba4c28f21
|
@ -286,7 +286,6 @@ class App extends Component {
|
|||
});
|
||||
};
|
||||
render() {
|
||||
console.log('props',this.props);
|
||||
const { pathType, pathName } = this.state;
|
||||
return (
|
||||
<Provider store={store}>
|
||||
|
|
|
@ -180,6 +180,8 @@ function checkPathname(projectsId, owner, pathname) {
|
|||
name = "wiki"
|
||||
} else if (url.indexOf(`/server`) > -1) {
|
||||
name = "server"
|
||||
} else if (url.indexOf(`/sonar`) > -1) {
|
||||
name = "sonar"
|
||||
}
|
||||
}
|
||||
return name;
|
||||
|
@ -541,7 +543,6 @@ class Detail extends Component {
|
|||
changeOpenDevops: this.changeOpenDevops,
|
||||
defaultBranch
|
||||
}
|
||||
console.log('详情props',this.props);
|
||||
return (
|
||||
<div>
|
||||
<div className="detailHeader-wrapper">
|
||||
|
@ -777,11 +778,11 @@ class Detail extends Component {
|
|||
}
|
||||
></Route>
|
||||
{/* 动态 */}
|
||||
{/* <Route path="/:owner/:projectsId/activity"
|
||||
<Route path="/:owner/:projectsId/activity"
|
||||
render={
|
||||
(props) => (<TrendsIndex {...this.props} {...props} {...this.state} {...common} />)
|
||||
}
|
||||
></Route> */}
|
||||
></Route>
|
||||
<Route path="/:owner/:projectsId/sonar"
|
||||
render={
|
||||
(props) => (<QualityAnalyse {...this.props} {...props} {...this.state} {...common} />)
|
||||
|
|
|
@ -4,6 +4,8 @@ import { Link } from 'react-router-dom';
|
|||
import { numFormat } from 'educoder';
|
||||
import QuitBox from './quit';
|
||||
import axios from 'axios';
|
||||
import Quality from '../../Images/quality/quality.svg'
|
||||
|
||||
|
||||
function DetailBanner({ history,list , owner , projectsId ,showNotification , url , pathname , state , urlFlag , projectDetail , platform ,open_devops ,current_user }){
|
||||
const [ menuName , setMenuName ] = useState(undefined);
|
||||
|
@ -32,7 +34,6 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur
|
|||
}
|
||||
}).catch(error=>{})
|
||||
}
|
||||
console.log('路径名称',pathname,owner,projectsId,state,history);
|
||||
return(
|
||||
<div className="f-wrap-between mt25">
|
||||
<QuitBox visible={visible} onCancel={()=>setVisible(false)} name={projectDetail && projectDetail.name} onSuccess={onSuccess}/>
|
||||
|
@ -154,7 +155,8 @@ console.log('路径名称',pathname,owner,projectsId,state,history);
|
|||
item.menu_name === "sonar" &&
|
||||
<li className={pathname==="sonar" ? "active" : ""}>
|
||||
<Link to={{ pathname: `/${owner}/${projectsId}/sonar`, state }}>
|
||||
<i className={pathname==="sonar" ? "iconfont icon-dongtaiicon color-grey-3 mr5 font-14":"iconfont icon-dongtaiicon color-grey-6 font-14 mr5"}></i>
|
||||
<img src={Quality} alt=''className='mt5 mr3' style={{width:'16px',height:'16px'}}/>
|
||||
{/* <i className={pathname==="sonar" ? "iconfont icon-a-shujufenxi-liuliangfenxi3 color-grey-3 mr5 font-14":"iconfont icon-a-shujufenxi-liuliangfenxi3 color-grey-6 font-14 mr5"}></i> */}
|
||||
<span>质量分析</span>
|
||||
</Link>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue