From c8c18ece009bafdcac9ed73446d8c2d4fbbf3256 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期三, 19 一月 2022 09:16:20 +0800
Subject: [PATCH] fixed TODO#134382 新增約訪紀錄:  "defaultValue" is not defined error

---
 PAMapp/components/Ui/UiDatePicker.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/PAMapp/components/Ui/UiDatePicker.vue b/PAMapp/components/Ui/UiDatePicker.vue
index 184f2e4..8752761 100644
--- a/PAMapp/components/Ui/UiDatePicker.vue
+++ b/PAMapp/components/Ui/UiDatePicker.vue
@@ -18,7 +18,7 @@
 
 @Component
 export default class UiDatePicker extends Vue {
-    dateValue = '';
+    dateValue: Date | string = '';
 
     @Prop()
     defaultValue!: string;
@@ -31,7 +31,7 @@
     @Watch('defaultValue', {immediate: true})
     updateDefault() {
         if (this.defaultValue) {
-            this.dateValue = this.defaultValue;
+            this.dateValue = new Date(this.defaultValue);
             this.changeDate();
         }
     }

--
Gitblit v1.8.0