refactor(项目设置): 创建项目时设置默认模版
--bug=1003654 --user=lyh 创建项目-默认缺陷模板是JIRA-建议修改为系统default模板 https://www.tapd.cn/55049933/s/1070891
This commit is contained in:
parent
70bd961020
commit
0a519ce005
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue