Browse Source

通知发布

李志伟 2 years ago
parent
commit
e64bb1bec4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/pages/notice/index.jsx

+ 1
- 1
src/pages/notice/index.jsx View File

36
       okText: '确认',
36
       okText: '确认',
37
       cancelText: '取消',
37
       cancelText: '取消',
38
       onOk() {
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
           .then((res) => {
40
           .then((res) => {
41
             message.success('操作成功');
41
             message.success('操作成功');
42
             actionRef.current.reload();
42
             actionRef.current.reload();