sharkey/src/client/app/admin/script.ts

30 lines
483 B
TypeScript
Raw Normal View History

2018-11-02 23:05:53 +09:00
/**
* Admin
*/
import VueRouter from 'vue-router';
// Style
import './style.styl';
import init from '../init';
import Index from './views/index.vue';
2018-12-27 20:22:54 +09:00
import NotFound from '../common/views/pages/not-found.vue';
2018-11-02 23:05:53 +09:00
init(launch => {
document.title = 'Admin';
// Init router
const router = new VueRouter({
mode: 'history',
base: '/admin/',
routes: [
{ path: '/', component: Index },
{ path: '*', component: NotFound }
2018-11-02 23:05:53 +09:00
]
});
// Launch the app
launch(router);
});