diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index bcc6810c2c..d7029a3721 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -525,12 +525,13 @@ export default { methods: { getTemplateField() { this.loading = true; - let p1 = getProjectMember((data) => { - this.members = data; - this.members.forEach(item => { - this.memberMap.set(item.id, item.name); + let p1 = getProjectMember() + .then((response) => { + this.members = response.data; + this.members.forEach(item => { + this.memberMap.set(item.id, item.name); + }); }); - }); let p2 = getTestTemplate(); Promise.all([p1, p2]).then((data) => { let template = data[1];