From 2dd8f75d526514a0adec9d3c8eac5f026b41eed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E8=8D=A3=E8=B6=85?= <302645122@qq.com> Date: Fri, 21 Jan 2022 18:08:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E5=B7=A5=E4=BD=9C=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E3=80=91=E5=A1=AB=E5=86=99=E5=86=85=E5=AE=B9--?= =?UTF-8?q?=E6=B1=87=E6=8A=A5=E7=B1=BB=E5=9E=8B=E5=88=87=E6=8D=A2=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF=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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ReportEdit.vue b/resources/assets/js/pages/manage/components/ReportEdit.vue index 4c1e99cc..8f16eeee 100644 --- a/resources/assets/js/pages/manage/components/ReportEdit.vue +++ b/resources/assets/js/pages/manage/components/ReportEdit.vue @@ -157,6 +157,7 @@ export default { if (data.id) { this.getDetail(data.id); } else { + this.reportData.id = 0; this.reportData.title = data.title; this.reportData.content = data.content; } @@ -176,9 +177,7 @@ export default { this.prevCycleText = this.$L("上一天"); this.nextCycleText = this.$L("下一天"); } - - if (this.id <= 0) - this.getTemplate(); + this.getTemplate(); }, getDetail(reportId) { this.userInputShow = false;