wheel-surf.page.js
645 Bytes
import Vue from 'vue';
import VueRouter from 'vue-router';
import iView from 'iview';
import App from 'vue@/App.vue';
import {create, list, decor} from 'vue@/wheel-surf';
import 'admin/wheel-surf.page.css';
import 'iview/dist/styles/iview.css';
Vue.use(VueRouter);
Vue.use(iView);
const router = new VueRouter({
routes: [
{path: '/admin/wheelSurf', component: list},
{path: '/admin/wheelSurf/decor', name: 'decor', component: decor},
{path: '/admin/wheelSurf/create', name: 'create', component: create}
],
mode: 'history'
});
new Vue({
el: '#app',
components: {
App
},
router
});