diff --git a/project/xumu/AppImmunityManage/add.vue b/project/xumu/AppImmunityManage/add.vue index 28ca43ee..ddd8e464 100644 --- a/project/xumu/AppImmunityManage/add.vue +++ b/project/xumu/AppImmunityManage/add.vue @@ -75,7 +75,8 @@ export default { }, submit() { this.$refs.detail.validate().then(() => { - this.instance.post("/api/breed/immunity/update", this.form).then(res => { + const action = !this.form.id ? "/api/breed/immunity/add" : "/api/breed/immunity/update" + this.instance.post(action, this.form).then(res => { if (res?.code == 0) { this.dialog = false this.getDetail() @@ -163,7 +164,7 @@ export default { - +