update
This commit is contained in:
parent
2b7e900cd5
commit
74b2abf1de
@ -3,7 +3,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: tradus-web:1.3.36
|
image: tradus-web:1.3.35
|
||||||
container_name: tradus-web
|
container_name: tradus-web
|
||||||
ports:
|
ports:
|
||||||
- '6000:80'
|
- '6000:80'
|
||||||
|
|||||||
@ -1124,7 +1124,6 @@ body {
|
|||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
-webkit-text-fill-color: transparent;
|
-webkit-text-fill-color: transparent;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
text-fill-color: transparent;
|
|
||||||
font-family:
|
font-family:
|
||||||
'SF Pro Display',
|
'SF Pro Display',
|
||||||
-apple-system,
|
-apple-system,
|
||||||
|
|||||||
@ -75,11 +75,7 @@ const fetchConversations = async () => {
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
conversations.value = await response.json()
|
conversations.value = await response.json()
|
||||||
|
|
||||||
// 如果有历史会话且当前没有选中任何会话,默认选择第一个会话
|
// 默认始终使用新对话,不自动加载历史会话
|
||||||
if (conversations.value.length > 0 && !selectedConversationId.value) {
|
|
||||||
selectedConversationId.value = conversations.value[0].id
|
|
||||||
await fetchConversationMessages(conversations.value[0].id)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('获取对话列表失败:', error)
|
console.error('获取对话列表失败:', error)
|
||||||
@ -706,6 +702,22 @@ const stopStreaming = async () => {
|
|||||||
<span class="example-icon">🏦</span>
|
<span class="example-icon">🏦</span>
|
||||||
<span>分析中国平安股票</span>
|
<span>分析中国平安股票</span>
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
class="example-question"
|
||||||
|
@click="sendExampleMessage('分析苹果公司(AAPL)股票')"
|
||||||
|
:disabled="isLoading"
|
||||||
|
>
|
||||||
|
<span class="example-icon">🍎</span>
|
||||||
|
<span>分析苹果公司股票</span>
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="example-question"
|
||||||
|
@click="sendExampleMessage('分析黄金价格走势')"
|
||||||
|
:disabled="isLoading"
|
||||||
|
>
|
||||||
|
<span class="example-icon">🪙</span>
|
||||||
|
<span>分析黄金价格走势</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -782,7 +794,7 @@ const stopStreaming = async () => {
|
|||||||
<textarea
|
<textarea
|
||||||
v-model="messageInput"
|
v-model="messageInput"
|
||||||
class="message-input"
|
class="message-input"
|
||||||
placeholder="输入您的问题,例如:分析一下:BTC"
|
placeholder="输入您的问题,例如:分析BTC、分析苹果股票、分析黄金价格"
|
||||||
@keydown="handleKeydown"
|
@keydown="handleKeydown"
|
||||||
:disabled="isLoading"
|
:disabled="isLoading"
|
||||||
rows="1"
|
rows="1"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user