|
|
@ -327,7 +327,7 @@ |
|
|
|
$('#sidebar').toggleClass('collapsed', sidebarCollapsed); |
|
|
|
|
|
|
|
const icon = sidebarCollapsed ? 'expand' : 'retract'; |
|
|
|
// $('#toggleSidebar').attr('src', `../../images/${icon}.svg`); |
|
|
|
// $('#toggleSidebar').attr('src', `{$smarty.const.CSS_URL}/images/${icon}.svg`); |
|
|
|
|
|
|
|
if (window.innerWidth <= 768 && !sidebarCollapsed) { |
|
|
|
$('#sidebar').css('transform', 'translateX(-100%)'); |
|
|
@ -579,13 +579,16 @@ |
|
|
|
// console.log(aiMessageDiv, 'aiMessageDiv---'); |
|
|
|
document.getElementById("messageInput").value = ""; // 清空输入框 |
|
|
|
// const response = await fetch('/api/stream', { |
|
|
|
const response = await fetch('http://192.168.31.74:26000/api/stream', { |
|
|
|
const response = await fetch('http://116.63.15.30:27000/search', { |
|
|
|
method: 'POST', |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json' |
|
|
|
}, |
|
|
|
body: JSON.stringify({ |
|
|
|
texts: message |
|
|
|
texts: message, |
|
|
|
"title": "小妙招csv2", |
|
|
|
"top": "20" |
|
|
|
|
|
|
|
}) |
|
|
|
}); |
|
|
|
if (!response.ok) { |
|
|
@ -673,7 +676,7 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
{/literal} |
|
|
|
{/literal} |
|
|
|
|
|
|
|
</body> |
|
|
|
|
|
|
|