diff --git a/frontend/src/business/components/common/components/table/MsTable.vue b/frontend/src/business/components/common/components/table/MsTable.vue
index d789b079d9..325b0bcf6e 100644
--- a/frontend/src/business/components/common/components/table/MsTable.vue
+++ b/frontend/src/business/components/common/components/table/MsTable.vue
@@ -254,7 +254,7 @@ export default {
methods: {
initData(){
//初始化数据是否显示提示块
- if(this.data.length > 0){
+ if(this.data && this.data.length > 0){
this.data[0].showBatchTip = true;
}
},
diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue
index c67906aef6..f21ea59127 100644
--- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue
@@ -114,6 +114,7 @@
diff --git a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue
index b2f46ea4d8..fc228d8a1e 100644
--- a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue
@@ -29,6 +29,7 @@
@@ -90,7 +91,7 @@ export default {
DependenciesList,
TestCaseTestRelate,
FormRichTextItem, TestCaseIssueRelate, TestCaseAttachment, MsRichText, TestCaseRichText},
- props: ['form', 'labelWidth', 'caseId', 'readOnly', 'projectId', 'isTestPlan', 'planId', 'versionEnable'],
+ props: ['form', 'labelWidth', 'caseId', 'readOnly', 'projectId', 'isTestPlan', 'planId', 'versionEnable', 'isCopy'],
data() {
return {
result: {},
diff --git a/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue b/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue
index 577dee6829..6e50920171 100644
--- a/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseIssueRelate.vue
@@ -124,7 +124,7 @@ export default {
issueRelateVisible: false
}
},
- props: ['caseId', 'readOnly','planId'],
+ props: ['caseId', 'readOnly','planId', 'isCopy'],
computed: {
issueStatusMap() {
return ISSUE_STATUS_MAP;
@@ -171,20 +171,22 @@ export default {
return getCustomFieldValue(row, field, this.members);
},
getIssues() {
- let result = getIssuesByCaseId(this.caseId, this.page);
- if (result) {
- this.page.result = result;
+ if (!this.isCopy) {
+ let result = getIssuesByCaseId(this.caseId, this.page);
+ if (result) {
+ this.page.result = result;
+ }
}
},
addIssue() {
- if (!this.caseId) {
+ if (!this.caseId || this.isCopy) {
this.$warning(this.$t('api_test.automation.save_case_info'));
return;
}
this.$refs.issueEdit.open();
},
relateIssue() {
- if (!this.caseId) {
+ if (!this.caseId || this.isCopy) {
this.$warning(this.$t('api_test.automation.save_case_info'));
return;
}