Merge branch 'feature/comment-0624-ch' into msb_test

fix/comment-0701
ch 2 years ago
commit 428e3165d1

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-24 11:43:04 * @Date: 2022-06-24 11:43:04
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-29 11:52:30 * @LastEditTime: 2022-06-29 18:07:35
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -72,7 +72,7 @@
<div v-if="answerVisible" class="answer--form"> <div v-if="answerVisible" class="answer--form">
<input v-model="answerContent" class="answer--input" <input v-model="answerContent" class="answer--input"
@keydown="handleClearAnswer" :placeholder="answerPlaceholder"/> @keydown="handleClearAnswer" :placeholder="answerPlaceholder"/>
<UiButton :disabled="!answerContent" @click="handleSubmitAnswer" <UiButton :disabled="!answerContent.trim()" @click="handleSubmitAnswer"
radius="4px" class="answer--btn" type="red_panel">发表</UiButton> radius="4px" class="answer--btn" type="red_panel">发表</UiButton>
</div> </div>
</div> </div>

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-25 15:29:43 * @Date: 2022-06-25 15:29:43
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-28 22:09:20 * @LastEditTime: 2022-06-29 18:06:08
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -62,10 +62,10 @@ export default {
isDisabled(){ isDisabled(){
let status = false let status = false
if(this.type === COMMENT.TYPE.COMMENT){ if(this.type === COMMENT.TYPE.COMMENT){
status = !this.rate || !this.commentContent status = !this.rate || !this.commentContent.trim();
} }
if(this.type === COMMENT.TYPE.FOLLOW_COMMENT){ if(this.type === COMMENT.TYPE.FOLLOW_COMMENT){
status = !this.commentContent; status = !this.commentContent.trim();
} }
return status; return status;
} }

Loading…
Cancel
Save