Merge pull request #7654 from dataease/pr@dev-v2@refactor_template

refactor: 优化模版管理命名限制
This commit is contained in:
王嘉豪 2024-01-16 15:15:27 +08:00 committed by GitHub
commit 6aba4cecb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 => {