diff --git a/docker-compose.yml b/docker-compose.yml index c4bb493..eff536f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: . dockerfile: Dockerfile - image: tradus-web:1.11 + image: tradus-web:1.12 container_name: tradus-web ports: - '6000:80' diff --git a/src/App.vue b/src/App.vue index 4acdac9..fc4ac3b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1159,7 +1159,6 @@ body { .chat-container { margin-left: 0; - padding-top: 4.5rem; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } diff --git a/src/assets/base.css b/src/assets/base.css index a0e9abc..fd62014 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -96,3 +96,22 @@ body { display: flex; flex-direction: column; } + +/* 全局滚动条样式 */ +*::-webkit-scrollbar { + width: 6px; + height: 6px; +} + +*::-webkit-scrollbar-track { + background: transparent; +} + +*::-webkit-scrollbar-thumb { + background-color: rgba(125, 125, 125, 0.2); + border-radius: 3px; +} + +*::-webkit-scrollbar-thumb:hover { + background-color: rgba(125, 125, 125, 0.3); +} diff --git a/src/views/AStockAnalysisView.vue b/src/views/AStockAnalysisView.vue index 3526b81..eddc952 100644 --- a/src/views/AStockAnalysisView.vue +++ b/src/views/AStockAnalysisView.vue @@ -9,6 +9,7 @@ const analysisContent = ref('') const analysisContainer = ref(null) const currentThought = ref('') const showInitialView = ref(true) +const copySuccess = ref(false) // 根据环境选择API基础URL const apiBaseUrl = @@ -138,6 +139,24 @@ const clearInput = () => { analysisContent.value = '' currentThought.value = '' } + +const copyAnalysis = async () => { + if (!analysisContent.value) return + + try { + const tempDiv = document.createElement('div') + tempDiv.innerHTML = analysisContent.value + const textContent = tempDiv.textContent || tempDiv.innerText || '' + + await navigator.clipboard.writeText(textContent) + copySuccess.value = true + setTimeout(() => { + copySuccess.value = false + }, 2000) + } catch { + console.error('复制失败') + } +}