diff --git a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue index dfec0e7669..81e0a8e47a 100644 --- a/frontend/src/business/components/track/common/minder/TestCaseMinder.vue +++ b/frontend/src/business/components/track/common/minder/TestCaseMinder.vue @@ -300,6 +300,10 @@ name: "TestCaseMinder", } this.saveModuleNodeMap.set(module.id, node); + + if (module.level > 8) { + this.throwError(this.$t('commons.module_deep_limit')); + } this.saveModules.push(module); }, buildExtraNode(data, parent, root) { diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index df7f73003f..f7506bfeb6 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -26,6 +26,7 @@ export default { import_mode: 'Import mode', import_module: 'Import module', import_user: 'Import user', + module_deep_limit: 'The node depth does not exceed 8 layers!', export: 'Export', please_fill_content: 'Please fill content', please_fill_in_the_template: 'Please fill in the template', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index cfebb5577b..6aa22c45dc 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -25,6 +25,7 @@ export default { import_success: '导入成功', import_mode: '导入模式', import_module: '导入模块', + module_deep_limit: '模块深度不超过8层!', import_user: '导入用户', export: '导出', please_fill_in_the_template: '请填写模版内容', diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 7055727eb3..3a1982c182 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -25,6 +25,7 @@ export default { import_success: '導入成功', import_mode: '導入模式', import_module: '導入模塊', + module_deep_limit: '模塊深度不超過8層!', import_user: '導入用戶', export: '導出', please_fill_in_the_template: '請填寫模版內容',