Browse Source

添加ai对话框

xiaoguang_li 3 months ago
parent
commit
009074564e
1 changed files with 1 additions and 1 deletions
  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 () {
       ChatPanel.prototype.answer = function () {
         let self = this;
         let self = this;
-        if (self.query.trim() === '') {
+        if (self.query().trim() === '') {
             return
             return
         }
         }
         self.messages.push({type:'user', content: self.query().trim()});
         self.messages.push({type:'user', content: self.query().trim()});