Browse Source

update chat

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

+ 3 - 3
chat/src/components/knowledgeLibrary.vue

@@ -265,7 +265,7 @@
 
 				const isLt1M = picavalue.size / 1024 / 1024 < 0.5;
 				if (!isLt1M) {
-					this.$dialog.toast({mes: '当前没有你要的内容,请发起留言', timeout: 1500});
+					this.$dialog.toast({mes: '上传的图片不能大于0.5MB', timeout: 1500});
 					return
 				}
 				const isJPG = picavalue.type == 'image/jpeg' || 'image/jpg' || 'image/png' || 'image/svg';
@@ -396,10 +396,10 @@
 			serchClick() {
 				// 如果输入框的值存在就调用接口
 				if (this.serchInputValue.length > 0) {
-					this.getAjax()
+					this.getAjax(1)
 				} else {
 					this.serchInputValue = '';
-					this.getAjax()
+					this.getAjax(1)
 					this.$dialog.toast({mes: '请输入关键词再搜索', timeout: 1500});
 				}
 			},