update: 修改了一些TODO提到的问题,简化时间格式化方法

This commit is contained in:
puhui999
2023-03-23 00:33:40 +08:00
parent d44ceda588
commit 5fedc6674b
5 changed files with 11 additions and 15 deletions

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import dayjs from 'dayjs'
import { parseTime } from '@/utils/formatTime'
import * as NotifyMessageApi from '@/api/system/notify/message'
const { push } = useRouter()
@ -57,7 +57,7 @@ onMounted(() => {
{{ item.templateNickname }}{{ item.templateContent }}
</span>
<span class="message-date">
{{ dayjs(item.createTime).format('YYYY-MM-DD HH:mm:ss') }}
{{ parseTime(item.createTime) }}
</span>
</div>
</div>