From 2213250bd4d7ab3dd4f9f4a3fa2662e3780ecb4d Mon Sep 17 00:00:00 2001 From: aolong Date: Sat, 4 Apr 2026 10:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E7=AD=94=E5=8A=A9?= =?UTF-8?q?=E6=89=8B=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/App.vue | 13 ++++++++----- frontend/package-lock.json | 2 -- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frontend/App.vue b/frontend/App.vue index b6cfa0f..f1f59b3 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -881,7 +881,7 @@ async function sendChatMessage() { : text try { - const res = await fetch('/api/chat', { + const res = await fetch('http://StoryMapAI.api.digitalmars.com.cn/api/chat', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ question }) @@ -1365,11 +1365,14 @@ function scrollToChatBottom() { .chat-toggle-btn { top: 16px; right: 16px; - border-radius: 999px; - padding: 9px 14px; + bottom: auto; + border-radius: 8px; + padding: 8px 7px; color: #f2e3be; cursor: pointer; - font-size: 13px; + font-size: 12px; + writing-mode: vertical-rl; + line-height: 1.15; } .chat-toggle-btn:hover { @@ -1380,7 +1383,7 @@ function scrollToChatBottom() { top: 16px; right: 16px; width: 350px; - height: 520px; + height: 380px; border-radius: 12px; display: flex; flex-direction: column; diff --git a/frontend/package-lock.json b/frontend/package-lock.json index bace479..8fb36ee 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1135,7 +1135,6 @@ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "esbuild": "^0.21.3", "postcss": "^8.4.43", @@ -1195,7 +1194,6 @@ "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.31.tgz", "integrity": "sha512-iV/sU9SzOlmA/0tygSmjkEN6Jbs3nPoIPFhCMLD2STrjgOU8DX7ZtzMhg4ahVwf5Rp9KoFzcXeB1ZrVbLBp5/Q==", "license": "MIT", - "peer": true, "dependencies": { "@vue/compiler-dom": "3.5.31", "@vue/compiler-sfc": "3.5.31",