纯空格不让提交

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

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

Loading…
Cancel
Save