forked from github/dataease
Merge pull request #7654 from dataease/pr@dev-v2@refactor_template
refactor: 优化模版管理命名限制
This commit is contained in:
commit
6aba4cecb9
@ -468,6 +468,14 @@ const categoryClick = params => {
|
||||
}
|
||||
|
||||
const saveTemplateEdit = templateEditForm => {
|
||||
if (templateEditForm.name === '最近使用') {
|
||||
ElMessage({
|
||||
message: '不合法命名,请更换!',
|
||||
type: 'error',
|
||||
showClose: true
|
||||
})
|
||||
return
|
||||
}
|
||||
templateEditFormRef.value.validate(valid => {
|
||||
if (valid) {
|
||||
save({ ...templateEditForm }).then(response => {
|
||||
|
Loading…
Reference in New Issue
Block a user