Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
b71d5d1f
You need to sign in or sign up before continuing.
Commit
b71d5d1f
authored
Mar 18, 2025
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 移动端应用切换后台再进入追问一直loading问题
parent
a564e5ad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
footer-input.vue
src/views/share/components/footer-input.vue
+2
-0
message-list.vue
src/views/share/components/message-list.vue
+2
-2
share-application-mobile.vue
src/views/share/share-application-mobile.vue
+4
-1
share-application-web.vue
src/views/share/share-application-web.vue
+2
-0
No files found.
src/views/share/components/footer-input.vue
View file @
b71d5d1f
...
...
@@ -55,6 +55,7 @@ const { uploadFileList, handleLimitUpload, handleUpload, handleRemoveFile } = us
const
{
uploadImageList
,
handleLimitUploadImage
,
handleUploadImage
,
handleRemoveUploadImage
}
=
useUploadImage
()
const
isAnswerResponseWait
=
defineModel
<
boolean
>
(
'isAnswerResponseLoading'
,
{
required
:
true
})
const
isAnswerResponseInterrupt
=
defineModel
<
boolean
>
(
'isAnswerResponseInterrupt'
,
{
required
:
true
})
const
emitter
=
inject
<
Emitter
<
MittEvents
>>
(
'emitter'
)
...
...
@@ -202,6 +203,7 @@ function handleMessageSend(lastQuestionContent?: string) {
let
replyTextContent
=
''
let
reasoningContent
=
''
isAnswerResponseWait
.
value
=
true
isAnswerResponseInterrupt
.
value
=
false
currentReplyContentSentenceExtractIndex
.
value
=
0
sentenceFragmentSerialNo
.
value
=
0
sentenceExtractCheckEnabled
.
value
=
false
...
...
src/views/share/components/message-list.vue
View file @
b71d5d1f
...
...
@@ -15,7 +15,7 @@ interface Props {
continuousQuestionList
:
string
[]
isAnswerResponseLoading
:
boolean
createContinueQuestionsException
:
boolean
lastQuestionContent
?:
string
isAnswerResponseInterrupt
?:
boolean
}
const
props
=
defineProps
<
Props
>
()
...
...
@@ -39,7 +39,7 @@ const isShowContinueQuestion = computed(() => {
props
.
messageList
.
size
>
1
&&
!
props
.
isAnswerResponseLoading
&&
!
props
.
createContinueQuestionsException
&&
!
props
.
lastQuestionConten
t
!
props
.
isAnswerResponseInterrup
t
)
})
...
...
src/views/share/share-application-mobile.vue
View file @
b71d5d1f
...
...
@@ -77,6 +77,7 @@ const isSoundCtlCreated = ref(false)
const
isAnswerResponseLoading
=
ref
(
false
)
const
createContinueQuestionsException
=
ref
(
false
)
const
lastQuestionContent
=
ref
(
''
)
// 上一次提问内容
const
isAnswerResponseInterrupt
=
ref
(
false
)
// 回答响应被中断
const
isEnableDocumentParse
=
computed
(()
=>
{
return
agentApplicationConfig
.
value
.
knowledgeConfig
.
isDocumentParsing
===
'Y'
...
...
@@ -350,6 +351,7 @@ function handleExitPage() {
lastQuestionContent
.
value
=
messageListArr
[
messageListArr
.
length
-
2
]?.
textContent
||
''
}
isAnswerResponseInterrupt
.
value
=
true
footerInputRef
.
value
?.
errorMessageResponse
()
}
}
...
...
@@ -388,7 +390,7 @@ function handleExitPage() {
:continuous-question-list=
"continueQuestionList"
:is-answer-response-loading=
"isAnswerResponseLoading"
:create-continue-questions-exception=
"createContinueQuestionsException"
:
last-question-content=
"lastQuestionConten
t"
:
is-answer-response-interrupt=
"isAnswerResponseInterrup
t"
@
audio-play=
"handleAudioPlay"
@
audio-pause=
"handleAudioPause"
/>
...
...
@@ -399,6 +401,7 @@ function handleExitPage() {
<FooterInput
ref=
"footerInputRef"
v-model:is-answer-response-loading=
"isAnswerResponseLoading"
v-model:is-answer-response-interrupt=
"isAnswerResponseInterrupt"
:message-list=
"messageList"
:dialogs-id=
"dialogsId"
:agent-id=
"agentApplicationConfig.baseInfo.agentId"
...
...
src/views/share/share-application-web.vue
View file @
b71d5d1f
...
...
@@ -54,6 +54,7 @@ const currentSoundCtl = shallowRef<Howl | null>(null)
const
isSoundCtlCreated
=
ref
(
false
)
const
isAnswerResponseLoading
=
ref
(
false
)
const
createContinueQuestionsException
=
ref
(
false
)
const
isAnswerResponseInterrupt
=
ref
(
false
)
// 回答响应被中断
const
isEnableDocumentParse
=
computed
(()
=>
{
return
agentApplicationConfig
.
value
.
knowledgeConfig
.
isDocumentParsing
===
'Y'
...
...
@@ -364,6 +365,7 @@ function handleAudioPause(isClearMessageList = false) {
<FooterInput
ref=
"footerInputRef"
v-model:is-answer-response-loading=
"isAnswerResponseLoading"
v-model:is-answer-response-interrupt=
"isAnswerResponseInterrupt"
:message-list=
"messageList"
:dialogs-id=
"dialogsId"
:agent-id=
"agentApplicationConfig.baseInfo.agentId"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment