Browse Source

添加ai对话框

xiaoguang_li 8 tháng trước cách đây
mục cha
commit
177dc1b905
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;
       };