mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
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 => {
|
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