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
b4e76b33
Commit
b4e76b33
authored
Jan 20, 2025
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(插件中心): 应用添加插件失败
parent
f77478f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
application-selection-modal.vue
src/views/plugin-center/application-selection-modal.vue
+3
-3
No files found.
src/views/plugin-center/application-selection-modal.vue
View file @
b4e76b33
...
@@ -26,7 +26,7 @@ interface ApplicationItemInfoInterface {
...
@@ -26,7 +26,7 @@ interface ApplicationItemInfoInterface {
unitIds
:
string
[]
unitIds
:
string
[]
}
}
defineProps
<
Props
>
()
const
props
=
defineProps
<
Props
>
()
const
showModal
=
defineModel
<
boolean
>
(
'showModal'
,
{
default
:
false
})
const
showModal
=
defineModel
<
boolean
>
(
'showModal'
,
{
default
:
false
})
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
...
@@ -89,7 +89,7 @@ function handleAppAddPlugin(agentId: string) {
...
@@ -89,7 +89,7 @@ function handleAppAddPlugin(agentId: string) {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
!==
0
)
return
''
if
(
res
.
code
!==
0
)
return
''
const
payload
=
{
...
res
.
data
,
unitIds
:
[...(
res
.
data
.
unitIds
||
[]),
agent
Id
]
}
const
payload
=
{
...
res
.
data
,
unitIds
:
[...(
res
.
data
.
unitIds
||
[]),
props
.
currentSelectPlugin
Id
]
}
fetchSaveAgentApplication
(
payload
)
fetchSaveAgentApplication
(
payload
)
.
then
((
SaveRes
)
=>
{
.
then
((
SaveRes
)
=>
{
...
@@ -177,7 +177,7 @@ function handleNavigateToAppSetting(agentId: string) {
...
@@ -177,7 +177,7 @@ function handleNavigateToAppSetting(agentId: string) {
:disabled=
"item.unitIds.includes(currentSelectPluginId)"
:disabled=
"item.unitIds.includes(currentSelectPluginId)"
@
click
.
stop=
"handleAppAddPlugin(item.agentId)"
@
click
.
stop=
"handleAppAddPlugin(item.agentId)"
>
>
{{
t
(
'common_module.add'
)
}}
{{
item
.
unitIds
.
includes
(
currentSelectPluginId
)
?
t
(
'common_module.added'
)
:
t
(
'common_module.add'
)
}}
</n-button>
</n-button>
</div>
</div>
</
template
>
</
template
>
...
...
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