在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 rivejä
455 B

4 vuotta sitten
// Import the router
import { RouterFactory } from 'meteor/akryum:vue-router2'
// Components
import Home from '/imports/ui/views/Home'
import Page from '/imports/ui/views/Page.vue'
RouterFactory.configure(factory => {
factory.addRoutes([
{
path: '/',
name: 'home',
component: Home,
},
{
path: '/page',
name: 'page',
component: Page,
},
])
})