fix: 脑图创建模块报错提示
This commit is contained in:
parent
3f04d930d6
commit
62959225a1
|
@ -61,6 +61,9 @@ name: "TestCaseMinder",
|
|||
buildSaveCase(root, saveCases, parent) {
|
||||
let data = root.data;
|
||||
if (data.resource && data.resource.indexOf(this.$t('api_test.definition.request.case')) > -1) {
|
||||
if (root.parent) {
|
||||
console.log(root.parent);
|
||||
}
|
||||
this._buildSaveCase(root, saveCases, parent);
|
||||
} else {
|
||||
if (root.children) {
|
||||
|
@ -118,6 +121,11 @@ name: "TestCaseMinder",
|
|||
if (isChange) {
|
||||
saveCases.push(testCase);
|
||||
}
|
||||
if (testCase.nodeId.length < 15) {
|
||||
let tip = this.$t('test_track.case.create_case') + "'" + testCase.name + "'" + this.$t('test_track.case.minder_create_tip');
|
||||
this.$error(tip)
|
||||
throw new Error(tip);
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
|
|
|
@ -1128,6 +1128,7 @@ export default {
|
|||
case: {
|
||||
list: "List",
|
||||
minder: "Minder",
|
||||
minder_create_tip: "failed, unable to create its parent module in minder",
|
||||
check_select: "Please check the case",
|
||||
export_all_cases: 'Are you sure you want to export all use cases?',
|
||||
input_test_case: 'Please enter the associated case name',
|
||||
|
|
|
@ -1132,6 +1132,7 @@ export default {
|
|||
case: {
|
||||
list: "列表",
|
||||
minder: "脑图",
|
||||
minder_create_tip: "失败, 无法在脑图创建其父模块",
|
||||
check_select: "请勾选用例",
|
||||
export_all_cases: '确定要导出全部用例吗?',
|
||||
input_test_case: '请输入关联用例名称',
|
||||
|
|
|
@ -1130,6 +1130,7 @@ export default {
|
|||
case: {
|
||||
list: "列表",
|
||||
minder: "腦圖",
|
||||
minder_create_tip: "失敗, 無法在腦圖創建其父模塊",
|
||||
check_select: "請勾選用例",
|
||||
export_all_cases: '確定要導出全部用例嗎?',
|
||||
input_test_case: '請輸入關聯用例名稱',
|
||||
|
|
Loading…
Reference in New Issue