fix(项目设置): 对接第三方自定义字段置为空

--bug=1048872 --user=宋昌昌 【项目设置】github#34138,对接第三方平台时,缺陷和需求类型打开时被置为空 https://www.tapd.cn/55049933/s/1622129
This commit is contained in:
song-cc-rock 2024-12-02 13:44:55 +08:00 committed by Craftsman
parent 63a1449c42
commit fdbce0ecb7
1 changed files with 2 additions and 1 deletions

View File

@ -270,6 +270,7 @@ export default {
this.setFormData();
this.$emit("change", this.data[this.formProp]);
this.$set(this.form, this.data[this.formProp], this.data[this.prop]);
this.$forceUpdate();
if (this.data.inputSearch) {
// optionLabel
@ -340,7 +341,7 @@ export default {
this.loading = false;
},
setFormData() {
if (this.form && this.data) {
if (this.form && this.data && this.data[this.prop]) {
this.$set(this.form, this.data[this.formProp], this.data[this.prop]);
}
},