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

@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
<title>Miniminu</title>
</head>
<body>
<div id="app"></div>

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, {