From 60ffb1bd5ec3335674c2145ae196c44332cb339a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 16 Jan 2024 15:12:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=A8=A1?= =?UTF-8?q?=E7=89=88=E7=AE=A1=E7=90=86=E5=91=BD=E5=90=8D=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/template/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/core-frontend/src/views/template/index.vue b/core/core-frontend/src/views/template/index.vue index 16a5cd7fb1..023668f19a 100644 --- a/core/core-frontend/src/views/template/index.vue +++ b/core/core-frontend/src/views/template/index.vue @@ -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 => {