修改路由信息

dev_forge
tangjiang 5 years ago
parent c875bb9bd1
commit 391b2a7729

@ -666,8 +666,9 @@ class App extends Component {
(props)=>(<Ecs {...this.props} {...props} {...this.state}></Ecs>)
}/>
<Route path="/problems/neworedittask/:id?" component={NewOrEditTask} />
<Route path="/problems/studentstudy/:id?" component={StudentStudy} />
<Route path="/problems/new/:id?" component={NewOrEditTask} />
<Route path="/problems/:id/edit" component={NewOrEditTask} />
<Route path="/myproblems/:id" component={StudentStudy} />
<Route path="/problems" component={Developer}/>
<Route exact path="/"

@ -107,7 +107,7 @@ const options = {
render: (text, record) => (
<span>
<Button type="primary">
<Link to={`/problems/neworedittask/${record.identifier}`}>编辑</Link>
<Link to={`/problems/${record.identifier}/edit`}>编辑</Link>
</Button>
</span>
),
@ -116,7 +116,7 @@ const columns = [
{
title: '标题',
dataIndex: 'name',
render: (name, record) => <Link style={{ color: '#459be5' }} to={`/problems/studentstudy/${record.identifier}`}>{name}</Link>
render: (name, record) => <Link style={{ color: '#459be5' }} to={`/myproblems/${record.identifier}`}>{name}</Link>
},
{
title: '分类',
@ -357,6 +357,7 @@ class DeveloperHome extends React.PureComponent {
return (
<Tag
closable
className={'search_tag_style'}
key={info.type}
onClose={() => this.handleTagClose(info)}
>{ctx}</Tag>
@ -377,7 +378,7 @@ class DeveloperHome extends React.PureComponent {
<MultipTags type="error" text="困难" numb={diff_count}/>
</div>
<Button type="primary">
<Link to="/problems/neworedittask">新建</Link>
<Link to="/problems/new">新建</Link>
</Button>
</div>
</div>

@ -65,4 +65,11 @@
}
}
.search_tag_style{
background: rgb(82, 196, 26);
color: #fff;
.anticon-close{
color: #fff;
}
}
}

Loading…
Cancel
Save