修改路由labels
This commit is contained in:
parent
17671a7c87
commit
4e08bf6fe3
|
@ -88,7 +88,7 @@ export default ((props)=>{
|
|||
|
||||
// 跳转
|
||||
function settingRule(protectBranch){
|
||||
props.history.push(`/${owner}/${projectsId}/settings/branch/${protectBranch}`);
|
||||
props.history.push(`/${owner}/${projectsId}/settings/branches/${protectBranch}`);
|
||||
}
|
||||
|
||||
// 翻页
|
||||
|
|
|
@ -290,7 +290,7 @@ export default Form.create()(
|
|||
<Cancel
|
||||
className="ml30"
|
||||
onClick={() => {
|
||||
history.push(`/${owner}/${projectsId}/settings/branch`);
|
||||
history.push(`/${owner}/${projectsId}/settings/branches`);
|
||||
}}
|
||||
>
|
||||
取消
|
||||
|
|
|
@ -91,17 +91,17 @@ class Index extends Component {
|
|||
}
|
||||
>
|
||||
<p>
|
||||
<Link to={`/${owner}/${projectsId}/settings/branch`} className="w-100">
|
||||
<Link to={`/${owner}/${projectsId}/settings/branches`} className="w-100">
|
||||
<i className="iconfont icon-fenzhi font-20 mr10"></i>
|
||||
分支设置
|
||||
</Link>
|
||||
</p>
|
||||
</li>
|
||||
<li
|
||||
className={pathname.indexOf("settings/lables") > -1 ? "active" : ""}
|
||||
className={pathname.indexOf("settings/labels") > -1 ? "active" : ""}
|
||||
>
|
||||
<p>
|
||||
<Link to={`/${owner}/${projectsId}/settings/lables`} className="w-100">
|
||||
<Link to={`/${owner}/${projectsId}/settings/labels`} className="w-100">
|
||||
<i className="iconfont icon-biaoqian3 font-18 mr10 color-grey-6"></i>
|
||||
项目标签
|
||||
</Link>
|
||||
|
@ -153,19 +153,19 @@ class Index extends Component {
|
|||
></Route>
|
||||
{/* 修改仓库信息 */}
|
||||
<Route
|
||||
path="/:owner/:projectsId/settings/lables"
|
||||
path="/:owner/:projectsId/settings/labels"
|
||||
render={(props) => (
|
||||
<Tags {...this.props} {...props} {...this.state} />
|
||||
)}
|
||||
></Route>
|
||||
<Route
|
||||
path="/:owner/:projectsId/settings/branch/:branch"
|
||||
path="/:owner/:projectsId/settings/branches/:branch"
|
||||
render={(props) => (
|
||||
<BranchNew {...this.props} {...props} {...this.state} />
|
||||
)}
|
||||
></Route>
|
||||
<Route
|
||||
path="/:owner/:projectsId/settings/branch"
|
||||
path="/:owner/:projectsId/settings/branches"
|
||||
render={(props) => (
|
||||
<Branch {...this.props} {...props } {...this.state} />
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue