From e2d78eecd552b8caba1f745c40cb9bb700c5867c Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 10 May 2021 09:41:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=9B=E5=BB=BA=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/track/issue/IssueEditDetail.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/track/issue/IssueEditDetail.vue b/frontend/src/business/components/track/issue/IssueEditDetail.vue index 2529bfef90..c3881cfce7 100644 --- a/frontend/src/business/components/track/issue/IssueEditDetail.vue +++ b/frontend/src/business/components/track/issue/IssueEditDetail.vue @@ -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) {