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); -