|
|
@@ -2783,13 +2783,13 @@ from desktop.views import _ko
|
|
|
|
|
|
/* 在 .no-custom-scrollbar 及其子元素中禁用自定义 */
|
|
|
.no-custom-scrollbar ::-webkit-scrollbar {
|
|
|
- width: auto; /* 恢复默认宽度 */
|
|
|
- height: auto; /* 恢复默认高度 */
|
|
|
+ /* width: auto; 恢复默认宽度 */
|
|
|
+ /* height: auto; 恢复默认高度 */
|
|
|
}
|
|
|
|
|
|
/* 或者彻底隐藏滚动条(如果你希望这样) */
|
|
|
- .no-custom-scrollbar ::-webkit-scrollbar {
|
|
|
- display: none;
|
|
|
+ .hidden-scrollbar ::-webkit-scrollbar {
|
|
|
+ display: none;
|
|
|
}
|
|
|
</style>
|
|
|
<div class="assist-flex-header" style="margin-bottom: 5px">
|
|
|
@@ -2886,13 +2886,14 @@ from desktop.views import _ko
|
|
|
|
|
|
ChatPanel.prototype.answer = function (data, event) {
|
|
|
let self = this;
|
|
|
- if (self.query().trim() === '') {
|
|
|
+ let cleanQuery = self.query().trim();
|
|
|
+ if (cleanQuery === '') {
|
|
|
return
|
|
|
}
|
|
|
- self.messages.push({type:'user', content: self.query().trim()});
|
|
|
- self.messages.push({type:'ai', content: '感谢提问!我已经收到你的消息:' + self.query().trim()});
|
|
|
-
|
|
|
self.query('');
|
|
|
+
|
|
|
+ self.messages.push({type:'user', content: cleanQuery});
|
|
|
+ self.messages.push({type:'ai', content: '感谢提问!我已经收到你的消息:' + cleanQuery});
|
|
|
};
|
|
|
|
|
|
ChatPanel.prototype.initFunctions = function (dialect) {
|