From 0a519ce005c7e02bc17c2b93744db805de6f692e Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Sat, 20 Nov 2021 11:31:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20=E5=88=9B=E5=BB=BA=E9=A1=B9=E7=9B=AE=E6=97=B6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=BB=98=E8=AE=A4=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1003654 --user=lyh 创建项目-默认缺陷模板是JIRA-建议修改为系统default模板 https://www.tapd.cn/55049933/s/1070891 --- .../components/settings/workspace/template/TemplateSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/settings/workspace/template/TemplateSelect.vue b/frontend/src/business/components/settings/workspace/template/TemplateSelect.vue index 921e791f95..818aabed84 100644 --- a/frontend/src/business/components/settings/workspace/template/TemplateSelect.vue +++ b/frontend/src/business/components/settings/workspace/template/TemplateSelect.vue @@ -44,8 +44,8 @@ export default { this.$get(url + getCurrentWorkspaceId(), (response) => { this.templateOptions = response.data; if (!this.data[this.prop]) { - for(let item of this.templateOptions) { - if (item.system) { + for (let item of this.templateOptions) { + if (item.system && item.platform === 'metersphere' && item.name === 'default') { this.$set(this.data, this.prop, item.id); break; }