update
This commit is contained in:
parent
cb9b876340
commit
2475a3bba5
@ -5,7 +5,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: tradus-web:1.3.7
|
image: tradus-web:1.3.8
|
||||||
container_name: tradus-web
|
container_name: tradus-web
|
||||||
ports:
|
ports:
|
||||||
- '6000:80'
|
- '6000:80'
|
||||||
|
|||||||
@ -33,7 +33,13 @@ const timeframeOptions = [
|
|||||||
{ value: '1d', label: '1天' },
|
{ value: '1d', label: '1天' },
|
||||||
{ value: '1w', label: '1周' },
|
{ value: '1w', label: '1周' },
|
||||||
]
|
]
|
||||||
const selectedTimeframe = ref('1d') // 默认为1天
|
const selectedTimeframe = ref('1h') // 默认改为1小时
|
||||||
|
|
||||||
|
// 获取时间周期的友好显示文本
|
||||||
|
const timeframeLabel = computed(() => {
|
||||||
|
const option = timeframeOptions.find((opt) => opt.value === selectedTimeframe.value)
|
||||||
|
return option ? option.label : selectedTimeframe.value
|
||||||
|
})
|
||||||
|
|
||||||
// 根据环境选择API基础URL
|
// 根据环境选择API基础URL
|
||||||
const apiBaseUrl =
|
const apiBaseUrl =
|
||||||
@ -259,7 +265,7 @@ const resetView = () => {
|
|||||||
currentThought.value = ''
|
currentThought.value = ''
|
||||||
isAnalyzing.value = false
|
isAnalyzing.value = false
|
||||||
// 重置为默认时间周期
|
// 重置为默认时间周期
|
||||||
selectedTimeframe.value = '1d'
|
selectedTimeframe.value = '1h'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 清除输入
|
// 清除输入
|
||||||
@ -413,10 +419,10 @@ const parsedContent = computed(() => {
|
|||||||
<div v-else class="analysis-view">
|
<div v-else class="analysis-view">
|
||||||
<div class="analysis-header">
|
<div class="analysis-header">
|
||||||
<div class="target-info">
|
<div class="target-info">
|
||||||
<span class="label">正在分析:</span>
|
<span class="label">分析目标:</span>
|
||||||
<span class="value">{{ symbolCode.toUpperCase() }}</span>
|
<span class="value">{{ symbolCode.toUpperCase() }}</span>
|
||||||
<span v-if="!isStockMode" class="label timeframe-info">周期:</span>
|
<span v-if="!isStockMode" class="label timeframe-info">时间周期:</span>
|
||||||
<span v-if="!isStockMode" class="value">{{ selectedTimeframe }}</span>
|
<span v-if="!isStockMode" class="value">{{ timeframeLabel }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-buttons" v-if="!isAnalyzing">
|
<div class="action-buttons" v-if="!isAnalyzing">
|
||||||
<button class="action-button" @click="resetView">
|
<button class="action-button" @click="resetView">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user