在meteor中使用vue2.x
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
437 B

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