魏超 il y a 5 ans
Parent
révision
ca6a68bd9c
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1
    1
      src/pages/news/list/NewsList.jsx
  2. 1
    1
      src/services/apis.js

+ 1
- 1
src/pages/news/list/NewsList.jsx Voir le fichier

@@ -180,7 +180,7 @@ function body(props) {
180 180
         cover={<img alt="example" src={data.newsImg} style={{ borderRadius: '12px 0 0 12px', width: '230px', height: '228px' }}></img>}
181 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 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 185
         </AuthButton>
186 186
 

+ 1
- 1
src/services/apis.js Voir le fichier

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