feat: add medias page

This commit is contained in:
yanghao05
2025-04-01 19:32:50 +08:00
parent fe9a80405d
commit 6aa61a7497
4 changed files with 306 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHashHistory } from 'vue-router';
// Define your routes here
const routes = [
@@ -7,10 +7,16 @@ const routes = [
name: 'Home',
component: () => import('./pages/HomePage.vue')
},
{
path: '/medias',
name: 'Medias',
component: () => import('./pages/MediaPage.vue')
},
];
// Create the router instance
export const router = createRouter({
history: createWebHistory(),
// history: createWebHistory(),
history: createWebHashHistory(),
routes
});