mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
bingAI: minor optimization
This commit is contained in:
parent
3672627e81
commit
c9f0db1c34
3 changed files with 3 additions and 15 deletions
|
@ -38,7 +38,6 @@
|
|||
<option>魔法聊天(较慢)(用魔法创建聊天后继续使用魔法聊天)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="body-top"></div>
|
||||
<div style="text-align: center;">
|
||||
<h3>chat with bing</h3>
|
||||
</div>
|
||||
|
|
|
@ -211,11 +211,6 @@ body {
|
|||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
#body-top {
|
||||
height: 20vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#body-bottom {
|
||||
height: 15rem;
|
||||
width: 100%;
|
||||
|
@ -517,14 +512,6 @@ div.markdown-body {
|
|||
/*手机 css*/
|
||||
|
||||
@media screen and (orientation:portrait) and (max-device-width:800px) and (max-device-height:1000px) {
|
||||
:root {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
div.markdown-body {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.InternalSearchQuery,
|
||||
.InternalLoaderMessage {
|
||||
width: 90%;
|
||||
|
|
|
@ -49,8 +49,10 @@ function onMessage(json, returnMessage) {
|
|||
onMessageIsOKClose = true;
|
||||
returnMessage.getCatWebSocket().close(1000, 'ok');
|
||||
} else {
|
||||
talk = undefined;
|
||||
localStorage.removeItem('LastChatJson');
|
||||
createChat(thisChatType).then((r) => {
|
||||
if(r.ok) talk = r.obj;
|
||||
});
|
||||
if (json.type == 1) {
|
||||
porserArguments(json.arguments);
|
||||
} else if (json.type == 2) {
|
||||
|
|
Loading…
Reference in a new issue