修改问答助手框
This commit is contained in:
@@ -881,7 +881,7 @@ async function sendChatMessage() {
|
|||||||
: text
|
: text
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await fetch('/api/chat', {
|
const res = await fetch('http://StoryMapAI.api.digitalmars.com.cn/api/chat', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ question })
|
body: JSON.stringify({ question })
|
||||||
@@ -1365,11 +1365,14 @@ function scrollToChatBottom() {
|
|||||||
.chat-toggle-btn {
|
.chat-toggle-btn {
|
||||||
top: 16px;
|
top: 16px;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
border-radius: 999px;
|
bottom: auto;
|
||||||
padding: 9px 14px;
|
border-radius: 8px;
|
||||||
|
padding: 8px 7px;
|
||||||
color: #f2e3be;
|
color: #f2e3be;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 13px;
|
font-size: 12px;
|
||||||
|
writing-mode: vertical-rl;
|
||||||
|
line-height: 1.15;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-toggle-btn:hover {
|
.chat-toggle-btn:hover {
|
||||||
@@ -1380,7 +1383,7 @@ function scrollToChatBottom() {
|
|||||||
top: 16px;
|
top: 16px;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
width: 350px;
|
width: 350px;
|
||||||
height: 520px;
|
height: 380px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
2
frontend/package-lock.json
generated
2
frontend/package-lock.json
generated
@@ -1135,7 +1135,6 @@
|
|||||||
"integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
|
"integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.21.3",
|
"esbuild": "^0.21.3",
|
||||||
"postcss": "^8.4.43",
|
"postcss": "^8.4.43",
|
||||||
@@ -1195,7 +1194,6 @@
|
|||||||
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.31.tgz",
|
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.31.tgz",
|
||||||
"integrity": "sha512-iV/sU9SzOlmA/0tygSmjkEN6Jbs3nPoIPFhCMLD2STrjgOU8DX7ZtzMhg4ahVwf5Rp9KoFzcXeB1ZrVbLBp5/Q==",
|
"integrity": "sha512-iV/sU9SzOlmA/0tygSmjkEN6Jbs3nPoIPFhCMLD2STrjgOU8DX7ZtzMhg4ahVwf5Rp9KoFzcXeB1ZrVbLBp5/Q==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-dom": "3.5.31",
|
"@vue/compiler-dom": "3.5.31",
|
||||||
"@vue/compiler-sfc": "3.5.31",
|
"@vue/compiler-sfc": "3.5.31",
|
||||||
|
|||||||
Reference in New Issue
Block a user