mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-07 06:32:23 +03:00
Add vue-router to dev deps
Revert router integration due to wrong merge
This commit is contained in:
@@ -1,14 +1,29 @@
|
||||
// The Vue build version to load with the `import` command
|
||||
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import App from './App.vue'
|
||||
import FormWizard from '../src/index'
|
||||
const First = { template: '<div>First page</div>' }
|
||||
const Second = { template: '<div>Second page</div>' }
|
||||
const Third = { template: '<div>Third page</div>' }
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
routes: [
|
||||
{ path: '/first', component: First },
|
||||
{ path: '/second', component: Second },
|
||||
{ path: '/third', component: Third }
|
||||
]
|
||||
})
|
||||
Vue.use(VueRouter)
|
||||
Vue.use(FormWizard)
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
router,
|
||||
el: '#app',
|
||||
template: '<App/>',
|
||||
components: {App}
|
||||
|
||||
Reference in New Issue
Block a user