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
if (textarea) {
textarea.addEventListener('keypress', this.handleKeyPress);
}
// 添加全局点击事件以关闭菜单
// document.addEventListener('click', (event) => {
// // 检查点击是否在菜单按钮上
// if (!event.target.closest('.menu-btn') && !event.target.closest('.menu-dropdown')) {
// this.closeAllMenus();
// }
// });
});
},
methods: {
......@@ -344,10 +336,13 @@ require(['jquery', 'vue', 'utils','marked','markdown', 'global'], function ($, V
async: false,
success: function (data) {
var mes = data.data;
if (mes && mes.length > 0){
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