From fe9294aaa12ec17fdf6d7c86917e4a8dcb5733fe Mon Sep 17 00:00:00 2001
From: no99 <17663930442@163.com>
Date: Sun, 17 Aug 2025 13:34:52 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=9B=9B=E6=AD=A5=E4=B8=8D=E6=8D=A2?=
=?UTF-8?q?=E8=A1=8C=E9=97=AE=E9=A2=98=E5=92=8C=E8=BE=93=E5=85=A5=E6=A1=86?=
=?UTF-8?q?=E9=AB=98=E5=BA=A6=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/AIchat.vue | 12 ++++++++++--
src/views/homePage.vue | 28 +++++++++++++++++++++-------
2 files changed, 31 insertions(+), 9 deletions(-)
diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue
index 876fd81..7481b06 100644
--- a/src/views/AIchat.vue
+++ b/src/views/AIchat.vue
@@ -957,6 +957,7 @@ async function showThinkingProcess(stockName = null) {
flag: true,
content: "夺宝奇兵大模型正在思考",
gif: thinkingGif,
+ nowrap: true,
});
chatStore.messages.push(thinkingMessage1);
await new Promise((resolve) => setTimeout(resolve, 1500));
@@ -970,6 +971,7 @@ async function showThinkingProcess(stockName = null) {
flag: true,
content: "正在解析关键数据",
gif: analyzeGif,
+ nowrap: true,
});
chatStore.messages.push(thinkingMessage2);
@@ -990,6 +992,7 @@ async function showThinkingProcess(stockName = null) {
flag: true,
content: `正在生成${stockName}全景作战报告`,
gif: generateGif,
+ nowrap: true,
});
chatStore.messages.push(thinkingMessage3);
await new Promise((resolve) => setTimeout(resolve, 1500));
@@ -1001,6 +1004,7 @@ async function showThinkingProcess(stockName = null) {
class: "ing",
type: "ing",
content: "报告已生成!",
+ nowrap: true,
});
chatStore.messages.push(thinkingMessage4);
await new Promise((resolve) => setTimeout(resolve, 1500));
@@ -4506,7 +4510,7 @@ onUnmounted(() => {
alt="思考过程"
class="thinking-gif"
/>
-
+
{{ msg.content }}
@@ -5071,7 +5075,7 @@ p {
align-items: center;
gap: 10px;
margin-right: auto;
- max-width: 80%;
+ /* max-width: 80%; */
}
/* 思考过程动图样式 */
@@ -5102,4 +5106,8 @@ p {
width: fit-content;
overflow: visible;
}
+
+.fourStep {
+ white-space: nowrap;
+}
diff --git a/src/views/homePage.vue b/src/views/homePage.vue
index c1dd754..427f3ca 100644
--- a/src/views/homePage.vue
+++ b/src/views/homePage.vue
@@ -553,6 +553,9 @@ const adjustFooterPosition = (height) => {
}, 200);
};
+// 是否正在输入法组合
+const inputing = ref(false);
+
const onFocus = function () {
const visualViewport = window.visualViewport;
// 获取可视区域高度
@@ -569,6 +572,7 @@ const onFocus = function () {
};
const onBlur = function () {
+ inputing.value = false;
const visualViewport = window.visualViewport;
setTimeout(() => {
console.log("输入框失焦");
@@ -896,13 +900,15 @@ onUnmounted(() => {
@focus="onFocus"
@blur="onBlur"
:autosize="{ minRows: 1, maxRows: 4 }"
- placeholder="请输入股票名称或股票代码..."
class="msg-input"
@keydown.enter.exact.prevent="
isLoading || isInputDisabled ? null : sendMessage()
"
:disabled="isInputDisabled"
resize="none"
+ :class="{ input: !message && !inputing }"
+ @compositionstart="inputing = true"
+ @compositionend="inputing = false"
>
Date: Sun, 17 Aug 2025 15:05:32 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=93=E5=BC=80console=E8=AF=AD=E5=8F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
build/vite/build.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/vite/build.js b/build/vite/build.js
index 37e9c28..c808589 100644
--- a/build/vite/build.js
+++ b/build/vite/build.js
@@ -36,8 +36,8 @@ export function createBuild(viteEnv) {
// 压缩配置
terserOptions: {
compress: {
- drop_console: true, // 生产环境移除console
- drop_debugger: true // 生产环境移除debugger
+ drop_console: false, // 生产环境移除console
+ drop_debugger: false // 生产环境移除debugger
}
}
};