Skip to content

Instantly share code, notes, and snippets.

@alonat
Last active May 17, 2018 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alonat/afdacd31f1309073142c1fbac59c347a to your computer and use it in GitHub Desktop.
Save alonat/afdacd31f1309073142c1fbac59c347a to your computer and use it in GitHub Desktop.
import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);
Vue.use(VueEvents);
const routes = [
{
name: 'lease_wrap_create',
path: '/lease',
component: 'lease/Lease',
redirect: {
name: 'lease_step1',
},
children: [
{
path: 'step1',
component: LeaseTypes,
name: 'lease_step1',
meta: {
step: 1,
},
},
{
path: 'step2',
component: LeaseInfo,
name: 'lease_step2',
meta: {
step: 2,
},
},
{
path: 'step3',
component: LeaseContent,
name: 'lease_step3',
meta: {
step: 3,
},
},
],
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment