34 lines
698 B
JavaScript
Raw Normal View History

2023-11-04 00:27:28 +01:00
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as VueRouter from 'vue-router'
2023-11-04 00:27:28 +01:00
import App from './App.vue'
import './registerServiceWorker'
import './index.css'
2023-11-04 00:27:28 +01:00
import MarketView from '@/components/MarketView'
import LoginView from '@/components/LoginView'
2023-11-07 09:48:01 +01:00
import UserView from '@/components/UserView'
const routes = [
{
path: '/', component: MarketView
},
{
path: '/login', component: LoginView
2023-11-07 09:48:01 +01:00
},
{
path: '/user', component: UserView
}
]
const router = VueRouter.createRouter({
history: VueRouter.createWebHashHistory(),
routes
})
const pinia = createPinia()
const app = createApp(App)
app.use(router)
app.use(pinia)
app.mount('#app')