Ver código fonte

通知发布

李志伟 2 anos atrás
pai
commit
e64bb1bec4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/pages/notice/index.jsx

+ 1
- 1
src/pages/notice/index.jsx Ver arquivo

@@ -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();