wheel-surf.page.js 760 Bytes
import Vue from 'vue';
import VueRouter from 'vue-router';
import iView from 'iview';
import App from 'vue@/App.vue';
import {create, list, conf, prize} 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', name: 'list', component: list},
        {path: '/admin/wheelSurf/conf', name: 'conf', component: conf},
        {path: '/admin/wheelSurf/create', name: 'create', component: create},
        {path: '/admin/wheelSurf/prizeSent', name: 'prizeSent', component: prize},
    ],
    mode: 'history'
});

new Vue({
    el: '.vue-app-container',
    components: {
        App
    },
    router
});