fix: 脑图模块深度超过8提示优化
--bug=1010258 --user=陈建星 【测试跟踪】github#10474 ,脑图 - 支持8个层级,超出时候的提示还是需要友好点 https://www.tapd.cn/55049933/s/1105191
This commit is contained in:
parent
36b7029d10
commit
645030ecd3
|
@ -300,6 +300,10 @@ name: "TestCaseMinder",
|
||||||
}
|
}
|
||||||
|
|
||||||
this.saveModuleNodeMap.set(module.id, node);
|
this.saveModuleNodeMap.set(module.id, node);
|
||||||
|
|
||||||
|
if (module.level > 8) {
|
||||||
|
this.throwError(this.$t('commons.module_deep_limit'));
|
||||||
|
}
|
||||||
this.saveModules.push(module);
|
this.saveModules.push(module);
|
||||||
},
|
},
|
||||||
buildExtraNode(data, parent, root) {
|
buildExtraNode(data, parent, root) {
|
||||||
|
|
|
@ -26,6 +26,7 @@ export default {
|
||||||
import_mode: 'Import mode',
|
import_mode: 'Import mode',
|
||||||
import_module: 'Import module',
|
import_module: 'Import module',
|
||||||
import_user: 'Import user',
|
import_user: 'Import user',
|
||||||
|
module_deep_limit: 'The node depth does not exceed 8 layers!',
|
||||||
export: 'Export',
|
export: 'Export',
|
||||||
please_fill_content: 'Please fill content',
|
please_fill_content: 'Please fill content',
|
||||||
please_fill_in_the_template: 'Please fill in the template',
|
please_fill_in_the_template: 'Please fill in the template',
|
||||||
|
|
|
@ -25,6 +25,7 @@ export default {
|
||||||
import_success: '导入成功',
|
import_success: '导入成功',
|
||||||
import_mode: '导入模式',
|
import_mode: '导入模式',
|
||||||
import_module: '导入模块',
|
import_module: '导入模块',
|
||||||
|
module_deep_limit: '模块深度不超过8层!',
|
||||||
import_user: '导入用户',
|
import_user: '导入用户',
|
||||||
export: '导出',
|
export: '导出',
|
||||||
please_fill_in_the_template: '请填写模版内容',
|
please_fill_in_the_template: '请填写模版内容',
|
||||||
|
|
|
@ -25,6 +25,7 @@ export default {
|
||||||
import_success: '導入成功',
|
import_success: '導入成功',
|
||||||
import_mode: '導入模式',
|
import_mode: '導入模式',
|
||||||
import_module: '導入模塊',
|
import_module: '導入模塊',
|
||||||
|
module_deep_limit: '模塊深度不超過8層!',
|
||||||
import_user: '導入用戶',
|
import_user: '導入用戶',
|
||||||
export: '導出',
|
export: '導出',
|
||||||
please_fill_in_the_template: '請填寫模版內容',
|
please_fill_in_the_template: '請填寫模版內容',
|
||||||
|
|
Loading…
Reference in New Issue