|
@@ -36,7 +36,7 @@ export default (props) => {
|
36
|
36
|
okText: '确认',
|
37
|
37
|
cancelText: '取消',
|
38
|
38
|
onOk() {
|
39
|
|
- updateNotice(record.newsId, { ...record, status: record.status === 1 ? 0 : 1 })
|
|
39
|
+ updateNotice(record.noticeId, { ...record, status: record.status === 1 ? 0 : 1 })
|
40
|
40
|
.then((res) => {
|
41
|
41
|
message.success('操作成功');
|
42
|
42
|
actionRef.current.reload();
|