Browse Source

去掉新闻发布内容字数限制

master
曲树通 6 years ago
parent
commit
b0d5b935a6
  1. 12
      src/views/modules/news/news-publish.vue

12
src/views/modules/news/news-publish.vue

@ -327,9 +327,9 @@ export default {
// //
this.quillEditor.on('text-change', () => { this.quillEditor.on('text-change', () => {
this.dataForm.newsContent = this.quillEditor.root.innerHTML this.dataForm.newsContent = this.quillEditor.root.innerHTML
if ((this.dataForm.newsContent).length > 10000) { // if ((this.dataForm.newsContent).length > 10000) {
return this.$message.error('您输入的的内容已超过字数') // return this.$message.error('')
} // }
}) })
}, },
// () // ()
@ -353,9 +353,9 @@ export default {
// end // end
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(function () {
if ((this.dataForm.newsContent).length > 10000) { // if ((this.dataForm.newsContent).length > 10000) {
return this.$message.error('您输入的的内容已超过字数不能提交') // return this.$message.error('')
} // }
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (!valid) { if (!valid) {
return false return false

Loading…
Cancel
Save