fix: #258. format precision YYYYMMDD

This commit is contained in:
Cindy Chang
2024-06-27 13:45:16 +08:00
parent 3fe427fcc3
commit 4418930d41
2 changed files with 6 additions and 2 deletions

View File

@@ -6,7 +6,11 @@
</figure> </figure>
<div class="flex justify-between items-center relative" <div class="flex justify-between items-center relative"
v-show="showMember"> v-show="showMember">
<img id="acct_mgmt_button" src="@/assets/icon-head-black.svg" width="32" height="32" <!-- TODO: 換成人頭按鈕 帳號管理功能 -->
<button id="logout_btn" class="btn btn-sm btn-neutral mr-2" @click.prevent="logOutButton">
Logout
</button>
<img v-show="false" id="acct_mgmt_button" src="@/assets/icon-head-black.svg" width="32" height="32"
class="cursor-pointer" @click="onAcctHeadClick" class="cursor-pointer" @click="onAcctHeadClick"
/> />
</div> </div>

View File

@@ -278,7 +278,7 @@ export const setTimeStringFormatBaseOnTimeDifference = (minTimeStamp, maxTimeSta
} else if (timeDifferenceInSeconds < 2592000) { // 2592000 秒 = 30 天 } else if (timeDifferenceInSeconds < 2592000) { // 2592000 秒 = 30 天
dateFormat = 'YYYY/MM/DD'; // 天 dateFormat = 'YYYY/MM/DD'; // 天
} else { } else {
dateFormat = 'YYYY/MM'; // 月 dateFormat = 'YYYY/MM/DD'; // 月
} }
return dateFormat; return dateFormat;