纯空格不让提交

feature/comment-0620-ch
ch 2 years ago
parent 2b3e4a954b
commit efdf803082

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-20 16:36:14
* @LastEditors: ch
* @LastEditTime: 2022-06-28 16:33:46
* @LastEditTime: 2022-06-29 18:04:39
* @Description: file content
-->
<template>
@ -51,9 +51,9 @@ export default {
computed:{
isVerify(){
if(this.type === COMMENT.TYPE.COMMENT){
return !this.rate || !this.commentContent;
return !this.rate || !this.commentContent.trim();
}else{
return !this.commentContent;
return !this.commentContent.trim();
}
},
isEdit (){

Loading…
Cancel
Save