魏超 5 年前
父节点
当前提交
ca6a68bd9c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      src/pages/news/list/NewsList.jsx
  2. 1
    1
      src/services/apis.js

+ 1
- 1
src/pages/news/list/NewsList.jsx 查看文件

180
         cover={<img alt="example" src={data.newsImg} style={{ borderRadius: '12px 0 0 12px', width: '230px', height: '228px' }}></img>}
180
         cover={<img alt="example" src={data.newsImg} style={{ borderRadius: '12px 0 0 12px', width: '230px', height: '228px' }}></img>}
181
         bodyStyle={{ padding: '10px 20px' }}
181
         bodyStyle={{ padding: '10px 20px' }}
182
       >
182
       >
183
-        <AuthButton name="admin.taNews.weight.put" noRight={null}>
183
+        <AuthButton name="admin.taNews.id.put" noRight={null}>
184
         <span style={{ position: 'absolute', right: '100px', top: '19px', fontSize: ' 0.106rem',zIndex:1, color: '#FF7E48', cursor: 'pointer' }} onClick={topNews(data.weight, data.newsId)}>{ data.weight === 1 ? '取消置顶' : '置顶' }</span>
184
         <span style={{ position: 'absolute', right: '100px', top: '19px', fontSize: ' 0.106rem',zIndex:1, color: '#FF7E48', cursor: 'pointer' }} onClick={topNews(data.weight, data.newsId)}>{ data.weight === 1 ? '取消置顶' : '置顶' }</span>
185
         </AuthButton>
185
         </AuthButton>
186
 
186
 

+ 1
- 1
src/services/apis.js 查看文件

172
     weight: {
172
     weight: {
173
       method: 'PUT',
173
       method: 'PUT',
174
       url: `${prefix}/taNews/weight`,
174
       url: `${prefix}/taNews/weight`,
175
-      action: 'admin.taNews.weight.put',
175
+      action: 'admin.taNews.id.put',
176
     }
176
     }
177
   },
177
   },
178
   newsType: {
178
   newsType: {