30 lines
599 B
JavaScript
30 lines
599 B
JavaScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import * as VueRouter from 'vue-router'
|
|
import App from './App.vue'
|
|
import './registerServiceWorker'
|
|
import './index.css'
|
|
|
|
import HomeView from '@/components/HomeView'
|
|
import LoginView from '@/components/LoginView'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/', component: HomeView
|
|
},
|
|
{
|
|
path: '/login', component: LoginView
|
|
}
|
|
]
|
|
const router = VueRouter.createRouter({
|
|
history: VueRouter.createWebHashHistory(),
|
|
routes
|
|
})
|
|
|
|
const pinia = createPinia()
|
|
|
|
const app = createApp(App)
|
|
app.use(router)
|
|
app.use(pinia)
|
|
app.mount('#app')
|