fix: 创建缺陷前端报错
This commit is contained in:
parent
0cd9098151
commit
e2d78eecd5
|
@ -158,9 +158,6 @@ export default {
|
|||
open(data) {
|
||||
let initAddFuc = this.initEdit;
|
||||
this.getMemberOptions();
|
||||
if (!data.creator) {
|
||||
data.creator = getCurrentUserId();
|
||||
}
|
||||
getTemplate('field/template/issue/get/relate/', this)
|
||||
.then((template) => {
|
||||
this.issueTemplate = template;
|
||||
|
@ -212,6 +209,9 @@ export default {
|
|||
}
|
||||
this.url = 'issues/add';
|
||||
}
|
||||
if (!this.form.creator) {
|
||||
this.form.creator = getCurrentUserId();
|
||||
}
|
||||
parseCustomField(this.form, this.issueTemplate, this.customFieldForm, this.customFieldRules, null);
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.testCaseIssueList) {
|
||||
|
|
Loading…
Reference in New Issue