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

21 lines
455 B

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