From 67b22234cf15e56ee804f62456de3e584609a53d Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Wed, 13 Jul 2022 19:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=97=A5=E6=8A=A5=E5=91=A8?= =?UTF-8?q?=E6=8A=A5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/api.js | 4 ++-- src/views/building/sugDetail.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/modules/api.js b/src/api/modules/api.js index 5e719cd..1b3fc7c 100644 --- a/src/api/modules/api.js +++ b/src/api/modules/api.js @@ -1227,7 +1227,7 @@ export function byWeekMonthData(data) { export function insertSelective(data) { return request({ url: '/autoSR/api/zkMessage/insertSelective', - method: 'get', - params: data + method: 'post', + data: data }) } \ No newline at end of file diff --git a/src/views/building/sugDetail.vue b/src/views/building/sugDetail.vue index 03efee8..98fa702 100644 --- a/src/views/building/sugDetail.vue +++ b/src/views/building/sugDetail.vue @@ -151,7 +151,7 @@ export default { this.ruleForm.messageType = this.type; console.log("231", this.ruleForm); this.$api.api.insertSelective(this.ruleForm).then((res) => { - if (res.data.code == 10000) { + if (res.code == 10000) { this.$message.success("操作成功"); this.$router.go(-1) }