Commit 72e4f51a authored by 姜耀祖's avatar 姜耀祖

bug修复

parent a5f2768c
Pipeline #21074 passed with stages
in 3 minutes and 23 seconds
...@@ -98,14 +98,6 @@ require(['jquery', 'vue', 'utils','marked','markdown', 'global'], function ($, V ...@@ -98,14 +98,6 @@ require(['jquery', 'vue', 'utils','marked','markdown', 'global'], function ($, V
if (textarea) { if (textarea) {
textarea.addEventListener('keypress', this.handleKeyPress); textarea.addEventListener('keypress', this.handleKeyPress);
} }
// 添加全局点击事件以关闭菜单
// document.addEventListener('click', (event) => {
// // 检查点击是否在菜单按钮上
// if (!event.target.closest('.menu-btn') && !event.target.closest('.menu-dropdown')) {
// this.closeAllMenus();
// }
// });
}); });
}, },
methods: { methods: {
...@@ -344,9 +336,12 @@ require(['jquery', 'vue', 'utils','marked','markdown', 'global'], function ($, V ...@@ -344,9 +336,12 @@ require(['jquery', 'vue', 'utils','marked','markdown', 'global'], function ($, V
async: false, async: false,
success: function (data) { success: function (data) {
var mes = data.data; var mes = data.data;
mes.forEach(section => { if (mes && mes.length > 0){
that.addMessage(section.role, section.content); that.fistLoading = false;
}); mes.forEach(section => {
that.addMessage(section.role, section.content);
});
}
} }
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment