项目全局使用formatDate方法移除parseTime方法

This commit is contained in:
shizhong
2023-06-13 11:03:33 +08:00
parent 8be4f31a1b
commit ba4cc02bfd
8 changed files with 24 additions and 69 deletions

View File

@ -44,7 +44,7 @@
<li v-for="item in getList" class="mt-2" :key="item.time">
<div class="flex items-center">
<span class="mr-2 text-primary font-medium">收到消息:</span>
<span>{{ parseTime(item.time) }}</span>
<span>{{ formatDate(item.time) }}</span>
</div>
<div>
{{ item.res }}
@ -56,7 +56,7 @@
</div>
</template>
<script setup lang="ts">
import { parseTime } from '@/utils/formatTime'
import { formatDate } from '@/utils/formatTime'
import { useUserStore } from '@/store/modules/user'
import { useWebSocket } from '@vueuse/core'