refactor(项目设置): 创建项目时设置默认模版

--bug=1003654 --user=lyh 创建项目-默认缺陷模板是JIRA-建议修改为系统default模板
https://www.tapd.cn/55049933/s/1070891
This commit is contained in:
shiziyuan9527 2021-11-20 11:31:10 +08:00 committed by shiziyuan9527
parent 70bd961020
commit 0a519ce005
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ export default {
this.$get(url + getCurrentWorkspaceId(), (response) => { this.$get(url + getCurrentWorkspaceId(), (response) => {
this.templateOptions = response.data; this.templateOptions = response.data;
if (!this.data[this.prop]) { if (!this.data[this.prop]) {
for(let item of this.templateOptions) { for (let item of this.templateOptions) {
if (item.system) { if (item.system && item.platform === 'metersphere' && item.name === 'default') {
this.$set(this.data, this.prop, item.id); this.$set(this.data, this.prop, item.id);
break; break;
} }