File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/components/TopicDetail Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ class TopicDetail extends Component {
110110 } ) . then ( res => {
111111 if ( res . success ) {
112112 this . _fetchTopicDetail ( )
113+ this . setState ( {
114+ reply : ''
115+ } )
113116 }
114117 } )
115118 }
@@ -166,7 +169,7 @@ class TopicDetail extends Component {
166169 < p > 添加评论</ p >
167170 < div className = "form" >
168171 < textarea onChange = { this . handleInput . bind ( this ) } > </ textarea >
169- < button className = "button button_info" onClick = { this . submit . bind ( this ) } > 提交</ button >
172+ < div className = "button button_info" onClick = { this . submit . bind ( this ) } > 提交</ div >
170173 </ div >
171174 </ div >
172175 </ div >
Original file line number Diff line number Diff line change 143143 width : 100% ;
144144 height : 140px ;
145145 outline : none ;
146+ border : none ;
147+ resize : none ;
148+ }
149+ .button {
150+ margin-top : 5px ;
146151 }
147152}
You can’t perform that action at this time.
0 commit comments