daily-check-in.page.js
676 Bytes
import Vue from 'vue';
import VueRouter from 'vue-router';
import iView from 'iview';
import App from 'vue@/App.vue';
import {list, create, prizelist} from 'vue@/daily-check-in';
import 'admin/daily-check-in.page.css';
import 'iview/dist/styles/iview.css';
Vue.use(VueRouter);
Vue.use(iView);
const router = new VueRouter({
routes: [
{path: '/admin/dailyCheckIn', name: 'list', component: list},
{path: '/admin/dailyCheckIn/create', name: 'create', component: create},
{path: '/admin/dailyCheckIn/prizelist', name: 'prizeList', component: prizelist}
],
mode: 'history'
});
new Vue({
el: '.vue-app-container',
components: {
App
},
router
});