From 962d2a406833a1b758e632065a8621e0a690eca9 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 7 Jan 2025 16:20:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(xumu):=20=E4=BF=AE=E5=A4=8D=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=8A=9F=E8=83=BD=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=20HTTP=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -将 handleDelete 方法中的 HTTP 请求从 delete 改为 post -此修改确保了删除操作使用正确的 HTTP 方法,提高了代码的正确性和安全性 --- project/xumu/AppEarTag/etList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/xumu/AppEarTag/etList.vue b/project/xumu/AppEarTag/etList.vue index 4468698b..7c58dd23 100644 --- a/project/xumu/AppEarTag/etList.vue +++ b/project/xumu/AppEarTag/etList.vue @@ -51,7 +51,7 @@ export default { }, handleDelete(id) { this.$confirm("确定删除该条数据?").then(() => { - this.instance.delete("/api/breed/earTag/del", null, {params: {id}}).then(res => { + this.instance.post("/api/breed/earTag/del", null, {params: {id}}).then(res => { if (res?.code == '0' && res?.data != 1) { this.$message.success("删除成功") this.getTableData()