fix: 创建缺陷前端报错

This commit is contained in:
chenjianxing 2021-05-10 09:41:00 +08:00 committed by BugKing
parent 0cd9098151
commit e2d78eecd5
1 changed files with 3 additions and 3 deletions

View File

@ -158,9 +158,6 @@ export default {
open(data) { open(data) {
let initAddFuc = this.initEdit; let initAddFuc = this.initEdit;
this.getMemberOptions(); this.getMemberOptions();
if (!data.creator) {
data.creator = getCurrentUserId();
}
getTemplate('field/template/issue/get/relate/', this) getTemplate('field/template/issue/get/relate/', this)
.then((template) => { .then((template) => {
this.issueTemplate = template; this.issueTemplate = template;
@ -212,6 +209,9 @@ export default {
} }
this.url = 'issues/add'; this.url = 'issues/add';
} }
if (!this.form.creator) {
this.form.creator = getCurrentUserId();
}
parseCustomField(this.form, this.issueTemplate, this.customFieldForm, this.customFieldRules, null); parseCustomField(this.form, this.issueTemplate, this.customFieldForm, this.customFieldRules, null);
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.testCaseIssueList) { if (this.$refs.testCaseIssueList) {