diff --git a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue index f60be5f8f0..b91b11116c 100644 --- a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue +++ b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue @@ -629,18 +629,21 @@ export default { issueDemandList(this.projectId) .then((r) => { this.demandOptions = []; - this.demandList = r.data; + if (r.data) { + this.demandList = r.data; + } this.buildDemandOptions(); }) - .catch(() => { + .catch((r) => { + this.demandOptions = []; this.addOtherOption(); }); } }, buildDemandOptions() { this.demandOptions = []; + this.addOtherOption(); if (this.demandList.length > 0) { - this.addOtherOption(); this.buildDemandCascaderOptions(this.demandList, this.demandOptions, []); } },