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"
>
![]()