Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Bk Bcs Saas
Commits
0bf995de
Unverified
Commit
0bf995de
authored
3 years ago
by
hito
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 修复项目新建后没有刷新项目列表问题 (#1644)
parent
6788c70b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bcs-app/frontend/src/views/project/project-create.vue
+11
-7
bcs-app/frontend/src/views/project/project-create.vue
with
11 additions
and
7 deletions
+11
-7
bcs-app/frontend/src/views/project/project-create.vue
+
11
-
7
View file @
0bf995de
...
...
@@ -49,19 +49,21 @@
}
},
setup
:
(
props
,
ctx
)
=>
{
const
{
projectData
}
=
toRefs
(
props
)
const
{
projectData
,
value
}
=
toRefs
(
props
)
const
{
emit
}
=
ctx
const
{
$bkMessage
,
$i18n
}
=
ctx
.
root
const
{
$bkMessage
,
$i18n
,
$store
}
=
ctx
.
root
const
formData
=
ref
({
project_name
:
projectData
?.
value
?.
project_name
,
english_name
:
projectData
?.
value
?.
english_name
,
description
:
projectData
?.
value
?.
description
})
watch
(
projectData
,
()
=>
{
formData
.
value
=
{
project_name
:
projectData
?.
value
?.
project_name
,
english_name
:
projectData
?.
value
?.
english_name
,
description
:
projectData
?.
value
?.
description
watch
(
value
,
(
isShow
)
=>
{
if
(
isShow
)
{
formData
.
value
=
{
project_name
:
projectData
?.
value
?.
project_name
,
english_name
:
projectData
?.
value
?.
english_name
,
description
:
projectData
?.
value
?.
description
}
}
})
const
loading
=
ref
(
false
)
...
...
@@ -109,6 +111,8 @@
}
loading
.
value
=
false
if
(
result
)
{
// 更新集群列表
await
$store
.
dispatch
(
'
getProjectList
'
)
$bkMessage
({
message
:
isEdit
.
value
?
$i18n
.
t
(
'
编辑成功
'
)
:
$i18n
.
t
(
'
创建成功
'
),
theme
:
'
success
'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help