소스 검색

添加ai对话框

xiaoguang_li 2 달 전
부모
커밋
009074564e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/core/src/desktop/templates/assist.mako

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -2867,7 +2867,7 @@ from desktop.views import _ko
 
       ChatPanel.prototype.answer = function () {
         let self = this;
-        if (self.query.trim() === '') {
+        if (self.query().trim() === '') {
             return
         }
         self.messages.push({type:'user', content: self.query().trim()});