Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
939e3790
authored
May 21, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【解决todo】角色仓库,公共仓库不显示更多操作
parent
8c81a9fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/views/ai/chat/role/RoleList.vue
+6
-1
src/views/ai/chat/role/index.vue
+2
-1
No files found.
src/views/ai/chat/role/RoleList.vue
View file @
939e3790
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"card-item"
v-for=
"role in roleList"
:key=
"role.id"
>
<div
class=
"card-item"
v-for=
"role in roleList"
:key=
"role.id"
>
<el-card
class=
"card"
body-class=
"card-body"
>
<el-card
class=
"card"
body-class=
"card-body"
>
<!-- 更多 -->
<!-- 更多 -->
<div
class=
"more-container"
>
<div
class=
"more-container"
v-if=
"showMore"
>
<el-dropdown
@
command=
"handleMoreClick"
>
<el-dropdown
@
command=
"handleMoreClick"
>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
<el-button
type=
"text"
>
<el-button
type=
"text"
>
...
@@ -58,6 +58,11 @@ const props = defineProps({
...
@@ -58,6 +58,11 @@ const props = defineProps({
roleList
:
{
roleList
:
{
type
:
Array
as
PropType
<
ChatRoleVO
[]
>
,
type
:
Array
as
PropType
<
ChatRoleVO
[]
>
,
required
:
true
required
:
true
},
showMore
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
}
}
})
})
// 定义钩子
// 定义钩子
...
...
src/views/ai/chat/role/index.vue
View file @
939e3790
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
<RoleList
<RoleList
:loading=
"loading"
:loading=
"loading"
:role-list=
"myRoleList"
:role-list=
"myRoleList"
:show-more=
"true"
@
on-delete=
"handlerCardDelete"
@
on-delete=
"handlerCardDelete"
@
on-edit=
"handlerCardEdit"
@
on-edit=
"handlerCardEdit"
@
on-use=
"handlerCardUse"
@
on-use=
"handlerCardUse"
...
@@ -49,7 +50,7 @@
...
@@ -49,7 +50,7 @@
@
on-edit=
"handlerCardEdit"
@
on-edit=
"handlerCardEdit"
@
on-page=
"handlerCardPage('public')"
@
on-page=
"handlerCardPage('public')"
style=
"margin-top: 20px;"
style=
"margin-top: 20px;"
/>
loading
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</el-main>
</el-main>
...
...
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