diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index a40f69d661..4ddd1d4e2a 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -136,12 +136,12 @@ - @@ -761,31 +761,18 @@ export default { }); } }, - visibleChange(flag) { - if (flag) { - this.getDemandOptions() - } - }, getDemandOptions() { - if (this.demandOptions.length === 0) { - this.projectId = getCurrentProjectID(); - this.result = {loading : true}; - this.$get("demand/list/" + this.projectId).then(response => { - this.demandOptions = response.data.data; - this.demandOptions.unshift({id: 'other', name: this.$t('test_track.case.other'), platform: 'Other'}) - this.result = {loading : false}; - }).catch(() => { - this.result = {loading : false}; - }) - } + this.projectId = getCurrentProjectID() + this.result = this.$get("demand/list/" + this.projectId, response => { + this.demandOptions = response.data; + this.demandOptions.unshift({id: 'other', name: this.$t('test_track.case.other')}) + }); }, getSelectOptions() { this.getModuleOptions(); this.getMaintainerOptions(); this.getTestOptions(); - if (this.type === 'edit') { - this.getDemandOptions(); - } + // this.getDemandOptions() }, resetForm() {