|
@@ -27,7 +27,6 @@ const header = props => {
|
27
|
27
|
|
28
|
28
|
// 编辑
|
29
|
29
|
function editChannel(data) {
|
30
|
|
- alert(1111111)
|
31
|
30
|
request({
|
32
|
31
|
url: `/api/admin/channel/${props.location.query.id}`,
|
33
|
32
|
method: 'PUT',
|
|
@@ -48,6 +47,11 @@ const header = props => {
|
48
|
47
|
}
|
49
|
48
|
});
|
50
|
49
|
}
|
|
50
|
+ function go() {
|
|
51
|
+ router.push({
|
|
52
|
+ pathname: '/channel/channelList',
|
|
53
|
+ });
|
|
54
|
+ }
|
51
|
55
|
|
52
|
56
|
const { getFieldDecorator } = props.form;
|
53
|
57
|
|
|
@@ -77,7 +81,7 @@ const header = props => {
|
77
|
81
|
<Button type="primary" htmlType="submit">
|
78
|
82
|
保存
|
79
|
83
|
</Button>
|
80
|
|
- <Button className={channels.formButton} onClick = {() => router.go(-1)} type="primary" htmlType="submit">
|
|
84
|
+ <Button className={channels.formButton} onClick = { go } type="primary" htmlType="submit">
|
81
|
85
|
取消
|
82
|
86
|
</Button>
|
83
|
87
|
</Form.Item>
|