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