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) }