在meteor中使用vue2.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
437 B

пре 4 година
import Vue from 'vue'
пре 4 година
import { RouterFactory, nativeScrollBehavior } from 'meteor/akryum:vue-router2'
пре 4 година
import '../imports/ui/plugins'
пре 4 година
import './routes'
пре 4 година
import App from '../imports/ui/App.vue'
Meteor.startup(() => {
пре 4 година
const routerFactory = new RouterFactory({
mode: 'history',
scrollBehavior: nativeScrollBehavior,
})
const router = routerFactory.create()
пре 4 година
new Vue({
el: '#app',
пре 4 година
router: router,
пре 4 година
...App,
})
})