diff --git a/project/xumu/AppWeightManage/add.vue b/project/xumu/AppWeightManage/add.vue index 90a2ebc2..ef9b8d2a 100644 --- a/project/xumu/AppWeightManage/add.vue +++ b/project/xumu/AppWeightManage/add.vue @@ -48,9 +48,15 @@ export default { } }) }, - handleDelete(index) { + handleDelete(id) { this.$confirm("确定删除该条数据?").then(() => { - this.detail.detailList.splice(index, 1) + this.instance.post("/api/breed/weight/del", null, { + params: {id} + }).then(res => { + if (res?.code == 0) { + this.getDetail() + } + }) }) }, submit() { @@ -109,7 +115,7 @@ export default {