mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
added router for redirect on home and add router for profile page
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
|
||||
import HomePage from "../pages/HomePage.vue";
|
||||
import ProfilePage from "@/pages/ProfilePage.vue";
|
||||
|
||||
export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', component: HomePage, name: 'home' }
|
||||
{ path: '/', component: HomePage, name: 'home' },
|
||||
{ path: '/', component: ProfilePage, name: 'profile' }
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user