mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
提交
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<el-form-item label="回答内容">
|
||||
<el-input
|
||||
type="textarea"
|
||||
v-model.trim="editData.content"
|
||||
v-model="editData.content"
|
||||
placeholder="请输入详细描述"
|
||||
rows="8"
|
||||
minlength="1"
|
||||
@@ -45,6 +45,7 @@
|
||||
type: 'warning'
|
||||
});
|
||||
}
|
||||
this.editData.content = this.editData.content.trim();
|
||||
// if(this.editData.content.length<0||this.editData.content.length>255){
|
||||
// return this.$message({
|
||||
// message: '回复内容为0-800个字',
|
||||
|
||||
@@ -252,7 +252,7 @@ export default {
|
||||
apiQa
|
||||
.saveAnswer({
|
||||
qid: this.answer.id,
|
||||
content: this.answer.inputValue
|
||||
content: this.answer.inputValue.trim()
|
||||
})
|
||||
.then(res => {
|
||||
if (res.status == 200) {
|
||||
|
||||
Reference in New Issue
Block a user