feat: basic ui

This commit is contained in:
opbnq-q
2025-03-13 13:23:13 +07:00
parent fc575fb2ab
commit 3b7b62d31a
18 changed files with 652 additions and 34 deletions

View File

@@ -1,10 +1,24 @@
import { createRouter, createWebHistory, type RouteRecordRaw } from "vue-router";
import Index from "../pages/Index.vue";
import UserPage from "../pages/user/UserPage.vue";
import PostTablePage from "../pages/tables/PostTablePage.vue";
export const routes: RouteRecordRaw[] = [{
path: "/",
component: Index,
name: 'Главная',
name: 'Главная'
}, {
path: '/user',
name: 'Пользователь',
component: UserPage,
redirect: '/user/post',
children: [
{
component: PostTablePage,
path: '/user/post',
name: 'Новости'
}
]
}]
export const router = createRouter({