From 18978f386850eeeb2cc2702f67e3cc5a211740d9 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期一, 06 十二月 2021 13:11:15 +0800 Subject: [PATCH] fixed: uiDateFormat undefind error --- PAMapp/components/Ui/UiDateFormat.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PAMapp/components/Ui/UiDateFormat.vue b/PAMapp/components/Ui/UiDateFormat.vue index 0e545dc..bda6f99 100644 --- a/PAMapp/components/Ui/UiDateFormat.vue +++ b/PAMapp/components/Ui/UiDateFormat.vue @@ -39,9 +39,9 @@ return `${this.compareTarget.getHours()}:${minutes}`; } - return isThisYear(this.date) - ? `${thisYearDayLabel} ${this.date.getHours()}:${minutes}` - : `${this.date.getFullYear()}/${this.date.getMonth() + 1}/${this.date.getDate()} ${this.date.getHours()}:${minutes}`; + return isThisYear(this.compareTarget) + ? `${thisYearDayLabel} ${this.compareTarget.getHours()}:${minutes}` + : `${this.compareTarget.getFullYear()}/${this.compareTarget.getMonth() + 1}/${this.compareTarget.getDate()} ${this.compareTarget.getHours()}:${minutes}`; } } </script> \ No newline at end of file -- Gitblit v1.8.0