change title
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite + Vue + TS</title>
|
<title>Miniminu</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, onUnmounted, ref } from "vue"
|
import { computed, onUnmounted, ref } from "vue"
|
||||||
import { timeUntil } from "../services/time-until"
|
import { timeUntil } from "../services/time-until"
|
||||||
|
import { useTitle } from "@vueuse/core"
|
||||||
|
|
||||||
const props = defineProps<{ project?: string; target?: string }>()
|
const props = defineProps<{ project?: string; target?: string }>()
|
||||||
|
|
||||||
|
if (props.project) {
|
||||||
|
useTitle(props.project)
|
||||||
|
}
|
||||||
|
|
||||||
const targetDate = computed(() =>
|
const targetDate = computed(() =>
|
||||||
props.target
|
props.target
|
||||||
? new Date(props.target).toLocaleDateString(undefined, {
|
? new Date(props.target).toLocaleDateString(undefined, {
|
||||||
|
|||||||
Reference in New Issue
Block a user