From 457cc6cf166d3b6c22be4f78c1db8802a7fbb4c7 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 07 四月 2025 17:53:19 +0800 Subject: [PATCH] DigitalHuman --- src/components/chat/components/playBar/hook/useDigitalHuman.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/components/chat/components/playBar/hook/useDigitalHuman.ts b/src/components/chat/components/playBar/hook/useDigitalHuman.ts index e6b8baf..dbd316c 100644 --- a/src/components/chat/components/playBar/hook/useDigitalHuman.ts +++ b/src/components/chat/components/playBar/hook/useDigitalHuman.ts @@ -23,6 +23,7 @@ // 鏄惁宸叉帴鍙g浉搴� const isReceiveRes = ref(false); + const humanIsLoading = ref(true); const digitalHumanIsShow = ref(false); const closeDigitalHuman = () => { @@ -31,6 +32,7 @@ }; const resetDuixStatus = () => { + humanIsLoading.value = true; isReceiveRes.value = false; // isSpeaking.value = false; digitalHumanIsShow.value = false; @@ -46,7 +48,6 @@ } return acc + mdText; }, ''); - console.log('馃殌 ~ knowledgeText:', knowledgeText); // const conclusionText = // item.conclusion // ?.filter((item) => !!item.report) @@ -82,6 +83,7 @@ }); duix.on('show', () => { console.info('show'); + humanIsLoading.value = false; // 姝ゆ椂鍙‘璁よ棰戝凡 // (document.querySelector('#modal') as HTMLElement).style.display = 'none'; }); @@ -222,5 +224,6 @@ openDigitalHuman, isHumanTalking: isReceiveRes, closeDigitalHuman, + humanIsLoading, }; }; -- Gitblit v1.9.3