This commit is contained in:
syuilo
2018-02-28 00:11:28 +09:00
parent ea2ddf3a4d
commit dbc421cb57
15 changed files with 272 additions and 377 deletions

View File

@@ -5,11 +5,25 @@
// Style
import './style.styl';
require('./tags');
import init from '../init';
import Index from './views/index.vue';
import Apps from './views/apps.vue';
import AppNew from './views/new-app.vue';
import App from './views/app.vue';
/**
* init
*/
init(() => {
init(launch => {
// Launch the app
const [app] = launch();
// Routing
app.$router.addRoutes([
{ path: '/', component: Index },
{ path: '/app', component: Apps },
{ path: '/app/new', component: AppNew },
{ path: '/app/:id', component: App },
]);
});