diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index cd09fe1..5c45de2 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -263,6 +263,7 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function () { + console.log(this.dataForm.noticeContent) if (this.dataForm.noticeContent != null && this.dataForm.noticeContent !== undefined) { this.dataForm.noticeContent = this.removeHTMLTag(this.dataForm.noticeContent) if ((this.dataForm.noticeContent).length > 10000) { @@ -277,7 +278,7 @@ export default { if (!valid) { return false } - this.$http[!this.dataForm.id ? 'post' : 'put']('/news/notice', this.dataForm).then(({ data: res }) => { + this.$http[!this.dataForm.id ? 'post' : 'put']('/news/notice/saveOrUpContent', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) }