From 377ead64b5a9b7f923cbf11bfa342af26801f7f9 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Mon, 29 Aug 2022 17:36:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86=E8=AE=BE=E7=BD=AE=E6=88=96?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E5=8B=BE=E9=80=89=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016433 --user=宋昌昌 【项目设置】模板管理, 用例模板, 缺陷模板添加或设置自定义字段时无法勾选默认值 https://www.tapd.cn/55049933/s/1235340 --- .../components/project/template/CustomFiledComponent.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/business/components/project/template/CustomFiledComponent.vue b/frontend/src/business/components/project/template/CustomFiledComponent.vue index 013bcd8fb2..97ca0e0d45 100644 --- a/frontend/src/business/components/project/template/CustomFiledComponent.vue +++ b/frontend/src/business/components/project/template/CustomFiledComponent.vue @@ -170,9 +170,7 @@ export default { return item.system ? this.$t(item.text) : item.text; }, handleChange() { - if (this.form) { - this.$set(this.form, this.data.name, this.data[this.prop]); - } + this.$forceUpdate(); }, } };