refactor: 优化模版管理命名限制

This commit is contained in:
wangjiahao 2024-01-16 15:12:23 +08:00
parent 82947ef3e7
commit 60ffb1bd5e

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