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