|
|
|
|
@ -63,7 +63,7 @@ const handleSend = () => {
|
|
|
|
|
controller.value = new AbortController();
|
|
|
|
|
const signal = controller.value.signal;
|
|
|
|
|
/** @microsoft/fetch-event-source该框架支持POST方法,并且支持传参 */
|
|
|
|
|
fetchEventSource('http://192.168.197.120:3000/events', {
|
|
|
|
|
fetchEventSource('http://localhost:3000/events', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
body: JSON.stringify({
|
|
|
|
|
question: '你好,我是小雅,请问有什么可以帮助您?',
|
|
|
|
|
@ -95,4 +95,10 @@ const handleSend = () => {
|
|
|
|
|
.wordbox::-webkit-scrollbar {
|
|
|
|
|
display: none; /* 隐藏滚动条 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (min-width: 768px) {
|
|
|
|
|
.wordbox {
|
|
|
|
|
width: 400px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|