mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
评论不能为空
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
type="textarea"
|
type="textarea"
|
||||||
class="hideControl"
|
class="hideControl"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
v-model="inputValue"
|
v-model.trim="inputValue"
|
||||||
maxlength="800"
|
maxlength="800"
|
||||||
placeholder="写下您的评论(800字以内),可以@案主哦~"
|
placeholder="写下您的评论(800字以内),可以@案主哦~"
|
||||||
></el-input>
|
></el-input>
|
||||||
@@ -483,8 +483,7 @@
|
|||||||
this.listShow=flag;
|
this.listShow=flag;
|
||||||
},
|
},
|
||||||
submit(){
|
submit(){
|
||||||
|
if(this.inputValue.trim()!=''){
|
||||||
if(this.inputValue!=''){
|
|
||||||
let cdata={
|
let cdata={
|
||||||
objType:this.objType,
|
objType:this.objType,
|
||||||
objId:this.objId,
|
objId:this.objId,
|
||||||
|
|||||||
Reference in New Issue
Block a user