Browse Source

添加ai对话框

xiaoguang_li 8 months ago
parent
commit
177dc1b905
1 changed files with 2 additions and 0 deletions
  1. 2 0
      desktop/core/src/desktop/templates/assist.mako

+ 2 - 0
desktop/core/src/desktop/templates/assist.mako

@@ -2861,7 +2861,9 @@ from desktop.views import _ko
       ChatPanel.prototype.ask = function (data, event) {
         let self = this;
         if (event.key === 'Enter' || event.keyCode === 13) {
+          event.preventDefault();
           self.answer();
+          return false;
         }
         return true;
       };