diff --git a/project-management/frontend/src/business/home/EditProject.vue b/project-management/frontend/src/business/home/EditProject.vue index 7361de5198..1bd772cbb6 100644 --- a/project-management/frontend/src/business/home/EditProject.vue +++ b/project-management/frontend/src/business/home/EditProject.vue @@ -255,11 +255,11 @@ export default { this.issueTemplateId = row.issueTemplateId; } + this.platformOptions = []; + this.platformOptions.push(...ISSUE_PLATFORM_OPTION); getPlatformOption() .then((r) => { - this.platformOptions = []; this.platformOptions.push(...r.data); - this.platformOptions.push(...ISSUE_PLATFORM_OPTION); this.loading = getAllServiceIntegration().then(res => { let data = res.data; let platforms = data.map(d => d.platform); diff --git a/system-setting/frontend/src/business/workspace/project/EditProject.vue b/system-setting/frontend/src/business/workspace/project/EditProject.vue index c03a97ec18..695c5d8a60 100644 --- a/system-setting/frontend/src/business/workspace/project/EditProject.vue +++ b/system-setting/frontend/src/business/workspace/project/EditProject.vue @@ -251,11 +251,11 @@ export default { this.issueTemplateId = row.issueTemplateId; } + this.platformOptions = []; + this.platformOptions.push(...ISSUE_PLATFORM_OPTION); getPlatformOption() .then((r) => { - this.platformOptions = []; this.platformOptions.push(...r.data); - this.platformOptions.push(...ISSUE_PLATFORM_OPTION); this.loading = getAllServiceIntegration().then(res => { let data = res.data; let platforms = data.map(d => d.platform);