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