|
|
|
@ -5,12 +5,10 @@
|
|
|
|
|
</p>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { defineComponent, ref, computed, onMounted } from 'vue'
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref, computed, onMounted } from 'vue'
|
|
|
|
|
import { useSiteDataByRoute, usePageData } from 'vitepress'
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
setup() {
|
|
|
|
|
const site = useSiteDataByRoute()
|
|
|
|
|
const page = usePageData()
|
|
|
|
|
|
|
|
|
@ -31,14 +29,6 @@ export default defineComponent({
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
datetime.value = new Date(page.value.lastUpdated).toLocaleString('en-US')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
hasLastUpdated,
|
|
|
|
|
prefix,
|
|
|
|
|
datetime
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|