From dc823ac20b7f91b0585b804efddbbd7d42e36f7f Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 23 Aug 2022 14:33:53 +0800 Subject: [PATCH] feat: formatting Date Signed-off-by: Ryan Wang --- src/modules/dashboard/widgets/RecentPublishedWidget.vue | 3 ++- src/modules/system/plugins/components/PluginListItem.vue | 8 +++----- src/modules/system/roles/RoleList.vue | 3 ++- src/modules/system/users/UserList.vue | 5 +++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/modules/dashboard/widgets/RecentPublishedWidget.vue b/src/modules/dashboard/widgets/RecentPublishedWidget.vue index 3c67dc33..a9a96953 100644 --- a/src/modules/dashboard/widgets/RecentPublishedWidget.vue +++ b/src/modules/dashboard/widgets/RecentPublishedWidget.vue @@ -3,6 +3,7 @@ import { VCard, VSpace } from "@halo-dev/components"; import { onMounted, ref } from "vue"; import type { Post } from "@halo-dev/api-client"; import { apiClient } from "@halo-dev/admin-shared"; +import { formatDatetime } from "@/utils/date"; const posts = ref([] as Post[]); @@ -46,7 +47,7 @@ onMounted(handleFetchPosts);
diff --git a/src/modules/system/plugins/components/PluginListItem.vue b/src/modules/system/plugins/components/PluginListItem.vue index d8886971..542f594b 100644 --- a/src/modules/system/plugins/components/PluginListItem.vue +++ b/src/modules/system/plugins/components/PluginListItem.vue @@ -9,6 +9,7 @@ import { import { toRefs } from "vue"; import { usePluginLifeCycle } from "../composables/use-plugin"; import type { Plugin } from "@halo-dev/api-client"; +import { formatDatetime } from "@/utils/date"; const props = withDefaults( defineProps<{ @@ -101,11 +102,8 @@ const { isStarted, changeStatus, uninstall } = usePluginLifeCycle(plugin); -