优化大模型逐字输出和UI上漏洞
This commit is contained in:
10
index.html
10
index.html
@@ -1192,10 +1192,7 @@
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.thinking-loading::after {
|
||||
content: '';
|
||||
animation: dots 0.8s infinite;
|
||||
}
|
||||
|
||||
|
||||
@keyframes dots {
|
||||
0% { content: ''; }
|
||||
@@ -2421,6 +2418,7 @@
|
||||
|
||||
|
||||
function sendMessage(isPre) {
|
||||
debugger;
|
||||
|
||||
if (controller) {
|
||||
showToast("请先停止对话");
|
||||
@@ -2453,8 +2451,9 @@
|
||||
addMessage('', "user", url);
|
||||
} else {
|
||||
addMessage('', "user", sendParam.imageBase64);
|
||||
sendParam.imageBase64 = '';
|
||||
|
||||
}
|
||||
sendParam.imageBase64 = '';
|
||||
|
||||
fileInput.value = "";
|
||||
}
|
||||
@@ -2606,6 +2605,7 @@ const getAiResponse = async (img) => {
|
||||
body: JSON.stringify(sendParam),
|
||||
signal: controller.signal,
|
||||
});
|
||||
sendParam.imageBase64 ='';
|
||||
} catch (err) {
|
||||
loadingDiv.textContent = "请求中断";
|
||||
if (controller) {
|
||||
|
||||
Reference in New Issue
Block a user