Explorar o código

添加ai对话框

xiaoguang_li hai 3 meses
pai
achega
6bd7e6fb5d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:'ai', content: '感谢提问!我已经收到你的消息:' + self.query().trim()});
 
-        self.query = '';
+        self.query('');
       };
 
       ChatPanel.prototype.initFunctions = function (dialect) {