李志伟 hace 2 años
padre
commit
e64bb1bec4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/pages/notice/index.jsx

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

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