修改问答助手框
This commit is contained in:
@@ -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;
|
||||
|
||||
2
frontend/package-lock.json
generated
2
frontend/package-lock.json
generated
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user