diff --git a/src/views/modules/news/notice-add-or-update.vue b/src/views/modules/news/notice-add-or-update.vue index 9095b697..05d03f6c 100644 --- a/src/views/modules/news/notice-add-or-update.vue +++ b/src/views/modules/news/notice-add-or-update.vue @@ -7,7 +7,7 @@ :rules="dataRule" ref="dataForm" :label-width="$i18n.locale === 'en-US' ? '120px' : '80px'"> - + - 10000) { - return this.$message.error('您输入的的内容已超过字数不能提交') - } + if(this.dataForm.noticeContent != null && this.dataForm.noticeContent != undefined ){ + if ((this.dataForm.noticeContent).length > 10000) { + return this.$message.error('您输入的的内容已超过字数不能提交') + } + } this.$refs['dataForm'].validate((valid) => { if (!valid) { return false