|
|
@ -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 |
|
|
|