change title

This commit is contained in:
Julien Calixte
2023-03-17 13:52:49 +01:00
parent 5e7e1c7bb7
commit 1f3fcbaa5e
2 changed files with 6 additions and 1 deletions

View File

@@ -1,9 +1,14 @@
<script setup lang="ts">
import { computed, onUnmounted, ref } from "vue"
import { timeUntil } from "../services/time-until"
import { useTitle } from "@vueuse/core"
const props = defineProps<{ project?: string; target?: string }>()
if (props.project) {
useTitle(props.project)
}
const targetDate = computed(() =>
props.target
? new Date(props.target).toLocaleDateString(undefined, {