22 lines
455 B
TypeScript
22 lines
455 B
TypeScript
import { createApp } from 'vue'
|
|||
|
|
import { createPinia } from 'pinia'
|
||
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
||
|
|
import App from './App.vue'
|
||
|
|
import './styles/main.css'
|
||
|
|
|
||
|
|
const router = createRouter({
|
||
|
|
history: createWebHistory(),
|
||
|
|
routes: [
|
||
|
|
{
|
||
|
|
path: '/',
|
||
|
|
name: 'chat',
|
||
|
|
component: () => import('./pages/ChatPage.vue'),
|
||
|
|
},
|
||
|
|
],
|
||
|
|
})
|
||
|
|
|
||
|
|
const app = createApp(App)
|
||
|
|
app.use(createPinia())
|
||
|
|
app.use(router)
|
||
|
|
app.mount('#app')
|