add heart animation
This commit is contained in:
7
src/router/config/_type/TRoutes.ts
Normal file
7
src/router/config/_type/TRoutes.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import type { Component } from 'vue'
|
||||
|
||||
export type TRoute = {
|
||||
path: string
|
||||
name: string
|
||||
component: () => Promise<Component>
|
||||
}
|
10
src/router/config/routes.ts
Normal file
10
src/router/config/routes.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import type { TRoute } from './_type/TRoutes.ts'
|
||||
|
||||
const routes: TRoute[] = [
|
||||
{
|
||||
path: '/',
|
||||
name: '/',
|
||||
component: () => import('../../pages/index/rootPage.vue'),
|
||||
},
|
||||
]
|
||||
export default routes
|
8
src/router/index.ts
Normal file
8
src/router/index.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import routes from './config/routes.ts'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes,
|
||||
})
|
||||
export default router
|
Reference in New Issue
Block a user