refactor(pages): migrate page titles to usehead
This commit is contained in:
parent
70cc843f15
commit
6689536762
@ -12,6 +12,9 @@
|
|||||||
// console.log("d_u", data?.user?.subscriptions)
|
// console.log("d_u", data?.user?.subscriptions)
|
||||||
const hider = subscriptions;
|
const hider = subscriptions;
|
||||||
if (authors.value == null) authors.value = [];
|
if (authors.value == null) authors.value = [];
|
||||||
|
useHead({
|
||||||
|
title: "Authors",
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<a-list v-model:data-source="authors" :grid="bp">
|
<a-list v-model:data-source="authors" :grid="bp">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
import { IUser } from "~/models/user";
|
import { IUser } from "~/models/user";
|
||||||
|
|
||||||
const { data: bands } = (await useApiFetch<NonNullable<IBand[]>>(
|
const { data: bands } = (await useApiFetch<NonNullable<IBand[]>>(
|
||||||
"/bands/all",
|
"/band/all",
|
||||||
)) as unknown as { data: Ref<IBand[]> };
|
)) as unknown as { data: Ref<IBand[]> };
|
||||||
|
|
||||||
const { data: rd }: { data: any } = useAuth();
|
const { data: rd }: { data: any } = useAuth();
|
||||||
@ -13,6 +13,9 @@
|
|||||||
|
|
||||||
const hider = subscriptions;
|
const hider = subscriptions;
|
||||||
if (bands.value == null) bands.value = [];
|
if (bands.value == null) bands.value = [];
|
||||||
|
useHead({
|
||||||
|
title: "Bands",
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<a-list v-model:data-source="bands" :grid="bp">
|
<a-list v-model:data-source="bands" :grid="bp">
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
definePageMeta({
|
definePageMeta({
|
||||||
middleware: ["auth"],
|
middleware: ["auth"],
|
||||||
});
|
});
|
||||||
|
useHead({
|
||||||
|
title: "Post a new Story",
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<a-typography-title> Post a new Story </a-typography-title>
|
<a-typography-title> Post a new Story </a-typography-title>
|
||||||
|
Loading…
Reference in New Issue
Block a user