Browse Source

Merge branch 'milestone-20250924-接入大财神工作流' of http://39.101.133.168:8807/hongxilin/AIxiaocaishen into milestone-20250924-接入大财神工作流

milestone-20250924-接入大财神工作流
宋杰 7 days ago
parent
commit
bd9e43bc1f
  1. 1
      src/store/chat.js
  2. 1
      src/store/deepNine.js
  3. 6
      src/views/AIchat.vue
  4. 8
      src/views/deepNine.vue

1
src/store/chat.js

@ -23,6 +23,7 @@ export const useChatStore = defineStore("chat", {
firstAPICall:false, firstAPICall:false,
dbqbScrollToTop:true, dbqbScrollToTop:true,
allowTyping:false,
}), }),
actions: { actions: {
async getUserCount() { async getUserCount() {

1
src/store/deepNine.js

@ -23,6 +23,7 @@ export const useDeepNineStore = defineStore("deepNine", {
firstAPICall:false, firstAPICall:false,
dbqbScrollToTop:true, dbqbScrollToTop:true,
allowTyping:false,
}), }),
actions: { actions: {
async getUserCount() { async getUserCount() {

6
src/views/AIchat.vue

@ -949,7 +949,9 @@ const processTypingQueue = async () => {
while (typingQueue.value.length > 0) { while (typingQueue.value.length > 0) {
const task = typingQueue.value.shift(); const task = typingQueue.value.shift();
await createTypingEffect(task.message, task.content, task.speed);
if (chatStore.allowTyping) {
await createTypingEffect(task.message, task.content, task.speed);
}
} }
isTypingInProgress.value = false; isTypingInProgress.value = false;
@ -1144,6 +1146,7 @@ watch(
// , // ,
try { try {
chatStore.allowTyping = true;
// //
const result = await dbqbFirstAPI(params1); const result = await dbqbFirstAPI(params1);
codeData.value = result.data; codeData.value = result.data;
@ -2576,6 +2579,7 @@ watch(
// 3. // 3.
typingQueue.value = []; typingQueue.value = [];
isTypingInProgress.value = false; isTypingInProgress.value = false;
chatStore.allowTyping = false;
// 4. // 4.
chatStore.isLoading = false; chatStore.isLoading = false;

8
src/views/deepNine.vue

@ -876,7 +876,9 @@ const processTypingQueue = async () => {
while (typingQueue.value.length > 0) { while (typingQueue.value.length > 0) {
const task = typingQueue.value.shift(); const task = typingQueue.value.shift();
await createTypingEffect(task.message, task.content, task.speed);
if (chatStore.allowTyping) {
await createTypingEffect(task.message, task.content, task.speed);
}
} }
isTypingInProgress.value = false; isTypingInProgress.value = false;
@ -1071,6 +1073,7 @@ watch(
// , // ,
try { try {
chatStore.allowTyping = true;
// //
const result = await deepNineFirstAPI(params1); const result = await deepNineFirstAPI(params1);
codeData.value = result.data; codeData.value = result.data;
@ -1962,6 +1965,7 @@ watch(
// 3. // 3.
typingQueue.value = []; typingQueue.value = [];
isTypingInProgress.value = false; isTypingInProgress.value = false;
chatStore.allowTyping = false;
// 4. // 4.
homepageChatStore.isLoading = false; homepageChatStore.isLoading = false;
@ -2187,7 +2191,7 @@ watch(
content: "该内容由AI生成,请注意甄别", content: "该内容由AI生成,请注意甄别",
end: true, end: true,
}); });
} catch (e) { } catch (e) {
ElMessage.error("历史数据获取出错!"); ElMessage.error("历史数据获取出错!");
console.error("e", e); console.error("e", e);

Loading…
Cancel
Save