fix: 创建缺陷前端报错
This commit is contained in:
parent
0cd9098151
commit
e2d78eecd5
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue