Browse Source

update chat

luke 6 years ago
parent
commit
bf23e9b6b7
1 changed files with 7 additions and 5 deletions
  1. 7 5
      chat/src/components/knowledgeLibrary.vue

+ 7 - 5
chat/src/components/knowledgeLibrary.vue

@@ -377,9 +377,6 @@
 							this.filesImg = this.filesImg ? this.filesImg + "," + res.data.data.src : res.data.data.src;
 						})
 					}
-					if(this.imgSrcList.length >= 1){
-
-					}
 
 					// 提交表单
 					setTimeout(()=>{
@@ -388,7 +385,6 @@
 								apiToken: this.setApiToken("LeavingMessage", "User", this.currentTime[0], "index")
 							}
 						}
-						console.log(this.filesImg);
 						let params = {
 							'nick_name': this.leave.call,
 							'email': this.leave.email,
@@ -400,10 +396,16 @@
 						this.post('api/index/User/LeavingMessage', params, obj).then((res) => {
 							if (res.data.code == 1) {
 								this.$dialog.toast({mes: "留言成功", timeout: 1500});
-								this.fileList =[];
 							}
 						})
 						this.flag = false;
+						this.fileList =[];
+						this.leave.call = ''
+						this.leave.email = ''
+						this.leave.describe = ''
+						this.leave.phone = ''
+						this.leave.filesImg = ''
+						this.imgSrcList = []
 					},1000)
 				}