在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 line
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,
})
})