Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
|
|
import Vue from 'vue'
|
|
|
|
import { RouterFactory, nativeScrollBehavior } from 'meteor/akryum:vue-router2'
|
|
|
|
|
|
|
|
import '../imports/ui/plugins'
|
|
|
|
import './routes'
|
|
|
|
|
|
|
|
import App from '../imports/ui/App.vue'
|
|
|
|
|
|
|
|
Meteor.startup(() => {
|
|
|
|
const routerFactory = new RouterFactory({
|
|
|
|
mode: 'history',
|
|
|
|
scrollBehavior: nativeScrollBehavior,
|
|
|
|
})
|
|
|
|
const router = routerFactory.create()
|
|
|
|
new Vue({
|
|
|
|
el: '#app',
|
|
|
|
router: router,
|
|
|
|
...App,
|
|
|
|
})
|
|
|
|
})
|