Unverified 提交 49aaf376 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #424 from dataease/pr@dev@refactor_view-copy-dev

refactor:仪表板名称限制在50字符内
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论