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
ec9da121
Commit
ec9da121
authored
Apr 29, 2025
by
chenghong_tao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add suggestion question loading status not click
parent
1e413c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
welcomeBubble.vue
src/components/chatSubassembly/welcomeBubble.vue
+8
-2
No files found.
src/components/chatSubassembly/welcomeBubble.vue
View file @
ec9da121
...
...
@@ -9,7 +9,7 @@
<template
v-if=
"suggestedQuestions.length > 0"
>
<el-divider
style=
"margin: 6px 0;"
/>
<template
v-for=
"(item, index) in suggestedQuestions"
:key=
"'suggest' + index"
>
<el-link
type=
"primary"
@
click=
"handleQuery(item)"
>
{{
item
}}
</el-link><br>
<el-link
type=
"primary"
@
click=
"handleQuery(item)"
:disabled=
"taskStore.isLoading"
>
{{
item
}}
</el-link><br>
</
template
>
</template>
</div>
...
...
@@ -21,7 +21,9 @@ import { computed, ref, watch } from "vue";
import
{
Refresh
,
Search
,
Star
,
DocumentCopy
}
from
"@element-plus/icons-vue"
;
import
{
Bubble
}
from
"vue-element-plus-x"
;
import
difyApi
from
"../../apis/difyApi"
;
import
{
useTaskStore
}
from
"../../store/task"
;
const
taskStore
=
useTaskStore
()
const
avatarAi
=
"./avatarAI.svg"
;
const
props
=
defineProps
({
appParams
:
{
...
...
@@ -41,7 +43,10 @@ watch(() => props.appParams, (val) => {
const
emit
=
defineEmits
([
"userQuery"
]);
const
handleQuery
=
(
query
)
=>
{
if
(
taskStore
.
isLoading
)
{
return
}
emit
(
"userQuery"
,
query
)
}
</
script
>
</
script
>
\ No newline at end of file
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