This commit is contained in:
9
src/config/router/index.ts
Normal file
9
src/config/router/index.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||
import routes from './routes'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(import.meta.env.VITE_URL),
|
||||
routes,
|
||||
})
|
||||
|
||||
export default router
|
17
src/config/router/routes.ts
Normal file
17
src/config/router/routes.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import type { Component } from 'vue'
|
||||
|
||||
interface Route {
|
||||
path: string
|
||||
name: string
|
||||
component: () => Promise<Component>
|
||||
}
|
||||
|
||||
const routes: Route[] = [
|
||||
{
|
||||
path: '/',
|
||||
name: '/',
|
||||
component: () => import('@/pages/mainPage/indexPage.vue'),
|
||||
},
|
||||
]
|
||||
|
||||
export default routes
|
0
src/layout/UiLayout.vue
Normal file
0
src/layout/UiLayout.vue
Normal file
3
src/pages/mainPage/indexPage.vue
Normal file
3
src/pages/mainPage/indexPage.vue
Normal file
@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div>main</div>
|
||||
</template>
|
Reference in New Issue
Block a user