mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-07-07 01:37:28 +08:00
first
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import AppLayout from "@/layout/AppLayout.vue";
|
||||
const layoutRouter = [
|
||||
{
|
||||
path: "",
|
||||
name: "home",
|
||||
component: () => import("@/views/home/index.vue"),
|
||||
},
|
||||
];
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/",
|
||||
component: AppLayout,
|
||||
children: layoutRouter,
|
||||
},
|
||||
];
|
||||
|
||||
export default createRouter({
|
||||
routes: routes,
|
||||
history: createWebHistory(),
|
||||
});
|
||||
Reference in New Issue
Block a user