mirror of
https://github.com/Ryujinx/Ryujinx-Website.git
synced 2024-06-02 21:28:47 +02:00
34 lines
730 B
TypeScript
34 lines
730 B
TypeScript
|
import { createRouter, createWebHistory } from "vue-router";
|
||
|
|
||
|
import BaseLayout from "@/layouts/BaseLayout.vue";
|
||
|
import BaseHomeLayout from "@/layouts/BaseHomeLayout.vue";
|
||
|
import Children from "./children";
|
||
|
const HomePage = () => import("@/views/HomePage.vue");
|
||
|
|
||
|
export const router = createRouter({
|
||
|
history: createWebHistory(),
|
||
|
linkActiveClass: "active",
|
||
|
linkExactActiveClass: "",
|
||
|
scrollBehavior() {
|
||
|
window.scrollTo(0, 0);
|
||
|
},
|
||
|
routes: [
|
||
|
{
|
||
|
path: "/",
|
||
|
component: BaseHomeLayout,
|
||
|
children: [
|
||
|
{
|
||
|
path: "",
|
||
|
name: "home",
|
||
|
component: HomePage
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
path: "/",
|
||
|
component: BaseLayout,
|
||
|
children: Children,
|
||
|
},
|
||
|
],
|
||
|
});
|