From 645030ecd344ee5db6e7ce9592856add898c0853 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 17 Feb 2022 18:11:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=84=91=E5=9B=BE=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=B7=B1=E5=BA=A6=E8=B6=85=E8=BF=878=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20--bug=3D1010258=20--user=3D=E9=99=88?= =?UTF-8?q?=E5=BB=BA=E6=98=9F=20=E3=80=90=E6=B5=8B=E8=AF=95=E8=B7=9F?= =?UTF-8?q?=E8=B8=AA=E3=80=91github#10474=20=EF=BC=8C=E8=84=91=E5=9B=BE=20?= =?UTF-8?q?-=20=E6=94=AF=E6=8C=818=E4=B8=AA=E5=B1=82=E7=BA=A7=EF=BC=8C?= =?UTF-8?q?=E8=B6=85=E5=87=BA=E6=97=B6=E5=80=99=E7=9A=84=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=BF=98=E6=98=AF=E9=9C=80=E8=A6=81=E5=8F=8B=E5=A5=BD=E7=82=B9?= =?UTF-8?q?=20https://www.tapd.cn/55049933/s/1105191?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/track/common/minder/TestCaseMinder.vue | 4 ++++ frontend/src/i18n/en-US.js | 1 + frontend/src/i18n/zh-CN.js | 1 + frontend/src/i18n/zh-TW.js | 1 + 4 files changed, 7 insertions(+) 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: '請填寫模版內容',