28 lines
625 B
TypeScript
28 lines
625 B
TypeScript
import { createApp } from 'vue'
|
|
import { createPinia } from 'pinia'
|
|
import { createWebHistory, createRouter } from 'vue-router'
|
|
|
|
import './assets/main.scss'
|
|
|
|
import App from './App.vue'
|
|
import Promo from './components/Promo/index.vue'
|
|
import PromoMain from './components/Promo/main.vue'
|
|
|
|
const routes = [
|
|
{ path: '/', component: Promo },
|
|
{ path: '/:item', component: Promo },
|
|
{ path: '/:item/:target', component: PromoMain },
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
})
|
|
|
|
|
|
const pinia = createPinia()
|
|
const app = createApp(App)
|
|
|
|
app.use(router)
|
|
app.use(pinia)
|
|
app.mount('#app') |