update format date

This commit is contained in:
AceDataCloud committed 2023-01-24 14:37:42 +08:00
1 parent b82ba7e9d3
commit 6a8b65a0e8
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@
{{ order?.amount }}
</el-descriptions-item>
<el-descriptions-item :label="$t('order.field.createdAt')">
{{ order?.created_at }}
{{ $dayjs.format(order?.created_at) }}
</el-descriptions-item>
<el-descriptions-item v-if="order?.price" :label="$t('order.field.price')">
<span class="price">¥{{ order?.price?.toFixed(2) }}</span>
+1 -1
View File
@@ -25,7 +25,7 @@
</el-table-column>
<el-table-column :label="$t('order.field.createdAt')" width="250px">
<template #default="scope">
<span class="created-at">{{ scope.row.created_at }}</span>
<span class="created-at">{{ $dayjs.format(scope.row.created_at) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('order.field.description')">
+1 -1
View File
@@ -2,7 +2,7 @@ import dayjs from 'dayjs';
import { App } from 'vue';
export interface IDayJS {
format: (v: string, formatString?: string) => string;
format: (v: string | undefined, formatString?: string) => string;
}
interface IOptions {