From 22ff43afc9efcc29d15bced9499d86e78dd6fda9 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 29 Jul 2021 18:00:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E9=99=90=E5=88=B6=E5=9C=A850=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E5=86=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/EditPanel/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/views/panel/list/EditPanel/index.vue b/frontend/src/views/panel/list/EditPanel/index.vue index 6f53ecb6f5..0aca7f717e 100644 --- a/frontend/src/views/panel/list/EditPanel/index.vue +++ b/frontend/src/views/panel/list/EditPanel/index.vue @@ -133,6 +133,13 @@ export default { this.$warning(this.$t('chart.name_can_not_empty')) return false } + + debugger + if (this.editPanel.panelInfo.name.length > 50) { + this.$warning(this.$t('commons.char_can_not_more_50')) + return false + } + if (!this.editPanel.panelInfo.panelData && this.editPanel.optType === 'new' && this.inputType === 'copy') { this.$warning(this.$t('chart.template_can_not_empty')) return false