|
@@ -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 => {
|