Browse Source

Merge branch 'wyp/0103-articleDeleteFix' of Server/long-article-recommend into master

wangyunpeng 6 months ago
parent
commit
6f69c19042

+ 3 - 3
long-article-recommend-service/src/main/resources/static/internal/articleDelete.html

@@ -163,7 +163,7 @@
                             </div>
                         </td>
                         <td>
-                            <button class="btn btn-primary btn-sm text-nowrap" onclick="submitData('${item.title}')">标记违规</button>
+                            <button class="btn btn-primary btn-sm text-nowrap" onclick="submitData('${item.title}', '${item.ghId}')">标记违规</button>
                         </td>
                     </tr>
                 `;
@@ -229,7 +229,7 @@
     }
 
     // 提交删除:调用后端接口
-    function submitData(title) {
+    function submitData(title, ghId) {
         // 调用后端更新接口
         fetch('/articleAudit/titleDangerFindDelete', { // 替换为实际接口
             method: 'POST',
@@ -237,7 +237,7 @@
                 'Content-Type': 'application/json',
                 'Access-Control-Allow-Origin': '*'
             },
-            body: JSON.stringify({title: title})
+            body: JSON.stringify({title: title, ghId: ghId})
         })
             .then(response => response.json())
             .then(data => {