Przeglądaj źródła

添加ai对话框

xiaoguang_li 3 miesięcy temu
rodzic
commit
6bd7e6fb5d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      desktop/core/src/desktop/templates/assist.mako

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

@@ -2873,7 +2873,7 @@ from desktop.views import _ko
         self.messages.push({type:'user', content: self.query().trim()});
         self.messages.push({type:'user', content: self.query().trim()});
         self.messages.push({type:'ai', content: '感谢提问!我已经收到你的消息:' + self.query().trim()});
         self.messages.push({type:'ai', content: '感谢提问!我已经收到你的消息:' + self.query().trim()});
 
 
-        self.query = '';
+        self.query('');
       };
       };
 
 
       ChatPanel.prototype.initFunctions = function (dialect) {
       ChatPanel.prototype.initFunctions = function (dialect) {