fix(xumu): 修复删除功能使用错误的 HTTP 方法
-将 handleDelete 方法中的 HTTP 请求从 delete 改为 post -此修改确保了删除操作使用正确的 HTTP 方法,提高了代码的正确性和安全性
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleDelete(id) {
|
handleDelete(id) {
|
||||||
this.$confirm("确定删除该条数据?").then(() => {
|
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) {
|
if (res?.code == '0' && res?.data != 1) {
|
||||||
this.$message.success("删除成功")
|
this.$message.success("删除成功")
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
|
|||||||
Reference in New Issue
Block a user