diff --git a/src/style.css b/src/style.css index 7820c46..a339ef5 100644 --- a/src/style.css +++ b/src/style.css @@ -77,3 +77,32 @@ button:focus-visible { background-color: #f9f9f9; } } + +/* 表格整体样式 */ +table { + border-collapse: collapse; /* 合并相邻单元格的边框 */ + width: 100%; /* 表格宽度为父容器的 100% */ + margin-bottom: 1rem; /* 表格底部外边距 */ + color: #212529; /* 表格文字颜色 */ +} + +/* 表头单元格样式 */ +table th { + padding: 0.75rem; /* 内边距 */ + border: 2px solid #dee2e6; /* 边框宽度、样式和颜色 */ + background-color: #f8f9fa; /* 表头背景颜色 */ + text-align: left; /* 文字左对齐 */ + font-weight: bold; /* 文字加粗 */ +} + +/* 表格数据单元格样式 */ +table td { + padding: 0.75rem; /* 内边距 */ + border: 1px solid #dee2e6; /* 边框宽度、样式和颜色 */ + text-align: left; /* 文字左对齐 */ +} + +/* 鼠标悬停时表格行的样式 */ +table tr:hover { + background-color: #f2f2f2; /* 鼠标悬停时的背景颜色 */ +} diff --git a/src/views/chat.vue b/src/views/chat.vue index 34d5460..26c6b79 100644 --- a/src/views/chat.vue +++ b/src/views/chat.vue @@ -37,7 +37,7 @@ const sessionId = ref(localStorage.getItem('sessionId') || {}); const add = async () => { try { const result = await axios.post( - "http://asp69f.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", + "http://wnxvxx.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", {}, { headers: { @@ -135,7 +135,7 @@ const sendMessage = async () => { try { // 调用API获取回复 - const response = await fetch("http://asp69f.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", { + const response = await fetch("http://wnxvxx.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", { method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ragflow-hkNjEwYjcwZjBlMDExZWZiYjYzMDI0Mm' }, body: JSON.stringify({ question: content, stream: false, session_id: sessionId.value }) @@ -308,11 +308,30 @@ onMounted(async () => { \ No newline at end of file