From 2eabc76c1a7da69f9e5efd9cda024eb51daa19f7 Mon Sep 17 00:00:00 2001 From: "Mr.Huan" Date: Sat, 22 Jan 2022 13:50:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=91=A8=E6=8A=A5?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=BC=96=E8=BE=91=E5=85=B3=E9=97=AD=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E7=82=B9=E5=87=BB"=E6=96=B0=E5=BB=BA=E6=B1=87?= =?UTF-8?q?=E6=8A=A5"=E6=8C=89=E9=92=AE=E5=AF=BC=E8=87=B4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=88=97=E8=A1=A8=E6=97=A0=E6=B3=95=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/components/ReportEdit.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/assets/js/pages/manage/components/ReportEdit.vue b/resources/assets/js/pages/manage/components/ReportEdit.vue index b7402190..6e0bcf73 100644 --- a/resources/assets/js/pages/manage/components/ReportEdit.vue +++ b/resources/assets/js/pages/manage/components/ReportEdit.vue @@ -104,10 +104,16 @@ export default { if (this.id > 0) { this.getDetail(val); }else{ + this.userInputShow = false; this.reportData.offset = 0; this.reportData.type = "weekly"; this.reportData.receive = []; this.getTemplate(); + setTimeout(() => { + // 如果不做异步,直接重新赋值的话会导致组件无法重新加载 + // 组件不销毁重新渲染,会导致UserInput组件无法重新拉取所有人的列表 + this.userInputShow = true; + }, 50) } }, },