Commit e9d44ac2 authored by lshan's avatar lshan

聊天空问题

parent cdf777cb
......@@ -22,6 +22,7 @@
<span>
<a-input v-model="item.answer" :placeholder="'设置自动回复'+ index +'(50字以内)'" :maxLength="50" style="width: 18rem;margin-right:10px;"/>
</span>
<span @click="addInput(index)">
<a-icon type="plus" style=" margin-right:10px;" />
</span>
......@@ -249,8 +250,8 @@ export default Vue.extend({
if (valid) {
this.show = false
for(let i=0;i<this.forms.length;i++){
if( !this.forms[i].question ){
message.error('第'+i+'个问题为空')
if( !this.forms[i].question || !this.forms[i].answer){
message.error('第'+i+'个问题添加失败')
}else{
FAQService.getInstance(). AddQueAns({
answer:this.forms[i].answer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment