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
797a5951
Commit
797a5951
authored
Oct 25, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(首页): 模型菜单选择失效
parent
86dc1589
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
footer-operation.vue
src/views/home/components/footer-operation.vue
+13
-3
No files found.
src/views/home/components/footer-operation.vue
View file @
797a5951
<
script
setup
lang=
"ts"
>
import
{
computed
,
nextTick
,
ref
}
from
'vue'
import
{
computed
,
nextTick
,
ref
,
toValue
}
from
'vue'
import
type
{
AgentApplicationRecordItem
,
MessageItemInterface
}
from
'../types'
import
{
fetchAgentApplicationSelectList
}
from
'@/apis/home-agent'
import
{
nanoid
}
from
'nanoid'
...
...
@@ -58,8 +58,18 @@ function handleApplicationSelectMenuSwitchShow() {
isShowApplicationSelectMenu
.
value
=
!
isShowApplicationSelectMenu
.
value
}
function
handleApplicationSelectBtnBlur
()
{
setTimeout
(()
=>
{
isShowApplicationSelectMenu
.
value
=
false
},
100
)
}
function
handleApplicationChange
(
agentApplicationItem
:
AgentApplicationRecordItem
)
{
currentAgentApplication
.
value
=
agentApplicationItem
if
(
currentAgentApplication
.
value
.
agentId
===
agentApplicationItem
.
agentId
)
{
return
}
currentAgentApplication
.
value
=
toValue
(
agentApplicationItem
)
}
function
handleCreateNewSession
()
{
...
...
@@ -189,7 +199,7 @@ function handleQuestionSubmitEnter(event: KeyboardEvent) {
<n-button
class=
"application-select-btn !h-[34px] !rounded-[10px] !p-0"
@
click=
"handleApplicationSelectMenuSwitchShow"
@
blur=
"
() => (isShowApplicationSelectMenu = false)
"
@
blur=
"
handleApplicationSelectBtnBlur
"
>
<div
class=
"box-border flex !w-[160px] w-full items-center justify-between px-[12px]"
>
<div
class=
"mr-[5px] flex flex-1 items-center overflow-hidden"
>
...
...
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