diff --git a/src/pages/console/order/Detail.vue b/src/pages/console/order/Detail.vue
index ad699e80..810d3a54 100644
--- a/src/pages/console/order/Detail.vue
+++ b/src/pages/console/order/Detail.vue
@@ -27,7 +27,7 @@
{{ order?.amount }}
- {{ order?.created_at }}
+ {{ $dayjs.format(order?.created_at) }}
¥{{ order?.price?.toFixed(2) }}
diff --git a/src/pages/console/order/List.vue b/src/pages/console/order/List.vue
index 7a8ab66d..86038570 100644
--- a/src/pages/console/order/List.vue
+++ b/src/pages/console/order/List.vue
@@ -25,7 +25,7 @@
- {{ scope.row.created_at }}
+ {{ $dayjs.format(scope.row.created_at) }}
diff --git a/src/plugins/dayjs.ts b/src/plugins/dayjs.ts
index 729d59d5..54078a26 100644
--- a/src/plugins/dayjs.ts
+++ b/src/plugins/dayjs.ts
@@ -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 {