Refactor style handling and add head management for overview route

This commit is contained in:
2026-01-05 01:15:01 +07:00
parent 22af8c4f2b
commit 2297cb3b69
2 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { type ReactiveHead, type ResolvableValue } from "@unhead/vue";
import { headSymbol } from '@unhead/vue'
import {
createMemoryHistory,
createRouter,
@@ -58,6 +59,13 @@ const routes: RouteData[] = [
path: "",
name: "overview",
component: () => import("./add/Add.vue"),
beforeEnter: (to, from, next) => {
const head = inject(headSymbol);
(head as any).push({
title: 'Overview - Holistream',
});
next();
}
},
{
path: "video",