refactor(工作台): 当模板管理新添加分类成功后,分类列表中默认选中新添加的分类

This commit is contained in:
wangjiahao 2024-03-08 10:56:05 +08:00
parent 18b5ac9e14
commit 4696666cee

View File

@ -479,12 +479,12 @@ const saveTemplateEdit = templateEditForm => {
templateEditFormRef.value.validate(valid => {
if (valid) {
save({ ...templateEditForm }).then(response => {
state.currentTemplateLabel = templateEditForm.name
ElMessage({
message: '添加成功',
type: 'success',
showClose: true
})
state.currentTemplateId = null
getTree()
close()
})