forked from github/dataease
Merge pull request #8414 from dataease/pr@dev-v2@refactor_workbranch
refactor(工作台): 当模板管理新添加分类成功后,分类列表中默认选中新添加的分类
This commit is contained in:
commit
79212703b6
@ -479,12 +479,12 @@ const saveTemplateEdit = templateEditForm => {
|
|||||||
templateEditFormRef.value.validate(valid => {
|
templateEditFormRef.value.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
save({ ...templateEditForm }).then(response => {
|
save({ ...templateEditForm }).then(response => {
|
||||||
state.currentTemplateLabel = templateEditForm.name
|
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: '添加成功',
|
message: '添加成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
showClose: true
|
showClose: true
|
||||||
})
|
})
|
||||||
|
state.currentTemplateId = null
|
||||||
getTree()
|
getTree()
|
||||||
close()
|
close()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user