Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ai-chat-ui
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
chenghong_tao
ai-chat-ui
Commits
eb7e85e7
Commit
eb7e85e7
authored
Apr 27, 2025
by
chenghong_tao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加loading状态
parent
c147ba53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
aiBubble.vue
src/components/chatSubassembly/aiBubble.vue
+6
-1
task.js
src/store/task.js
+5
-1
No files found.
src/components/chatSubassembly/aiBubble.vue
View file @
eb7e85e7
...
...
@@ -38,7 +38,7 @@
:icon=
"Refresh"
size=
"small"
circle
:disabled=
"isLoading"
:disabled=
"
taskStore.
isLoading"
@
click=
"reStartSSE"
/>
<el-button
...
...
@@ -112,6 +112,11 @@ watch(
{
immediate
:
true
}
);
watch
(()
=>
isLoading
.
value
,
(
newValue
)
=>
{
console
.
log
(
'isLoading status : '
,
newValue
)
taskStore
.
setIsLoading
(
newValue
)
})
const
isReStartWorkflow
=
ref
(
false
)
const
workflowStatus
=
ref
(
null
)
// 默认支持 SSE 协议
...
...
src/store/task.js
View file @
eb7e85e7
...
...
@@ -6,7 +6,8 @@ export const useTaskStore = defineStore('task', {
taskId
:
''
,
// 当前任务id
conversation_id
:
''
,
// 当前会话id
message_id
:
''
,
// 当前消息id
workflow_run_id
:
''
// 当前工作流运行id
workflow_run_id
:
''
,
// 当前工作流运行id
isLoading
:
false
}
},
actions
:
{
...
...
@@ -24,6 +25,9 @@ export const useTaskStore = defineStore('task', {
setWorkflowRunId
(
workflow_run_id
)
{
this
.
workflow_run_id
=
workflow_run_id
},
setIsLoading
(
isLoading
)
{
this
.
isLoading
=
isLoading
},
clear
()
{
this
.
taskId
=
''
this
.
conversation_id
=
''
...
...
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