diff --git a/src/views/modules/psychology/psychologyquestion.vue b/src/views/modules/psychology/psychologyquestion.vue index f5231c7..63fe77b 100644 --- a/src/views/modules/psychology/psychologyquestion.vue +++ b/src/views/modules/psychology/psychologyquestion.vue @@ -186,7 +186,7 @@ export default { }).then(() => { this.dataForm.id = id this.dataForm.displayFlag = '0' - this.$http['put']('/property/psychologyquestion/', this.dataForm).then(({ data: res }) => { + this.$http['put']('/property/psychologyquestion/', { id: this.dataForm.id, displayFlag: this.dataForm.displayFlag }).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -213,7 +213,7 @@ export default { }).then(() => { this.dataForm.id = id this.dataForm.displayFlag = '1' - this.$http['put']('/property/psychologyquestion/', this.dataForm).then(({ data: res }) => { + this.$http['put']('/property/psychologyquestion/', { id: this.dataForm.id, displayFlag: this.dataForm.displayFlag }).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) }