fix(测试跟踪): 功能用例关联需求选项为空

--bug=1018096 --user=陈建星 【测试跟踪】集成tapd-测试用例关联需求-需求列表为空 https://www.tapd.cn/55049933/s/1262520
This commit is contained in:
chenjianxing 2022-10-15 16:18:38 +08:00 committed by jianxing
parent f2d30f6187
commit ffd41ab80d
1 changed files with 3 additions and 3 deletions

View File

@ -536,10 +536,10 @@ export default {
this.result = {loading: true};
this.demandLabel = '';
issueDemandList(this.projectId)
.then(response => {
.then(r => {
this.demandOptions = [];
if (response.data.data && response.data.data.length > 0) {
this.buildDemandCascaderOptions(response.data.data, this.demandOptions, []);
if (r.data && r.data.length > 0) {
this.buildDemandCascaderOptions(r.data, this.demandOptions, []);
}
this.addOtherOption();
}).catch(() => {