[Client] Fix bug

This commit is contained in:
syuilo 2017-08-11 03:13:36 +09:00
parent 8f577ec248
commit 4a04e679d1
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,8 @@
import * as riot from 'riot';
const route = require('page');
let page = null;
module.exports = me => {
export default me => {
route('/', index);
route('/apps', apps);
route('/app/new', newApp);
@ -34,7 +35,6 @@ module.exports = me => {
route();
};
import * as riot from 'riot';
function mount(content) {
if (page) page.unmount();
const body = document.getElementById('app');

View file

@ -7,7 +7,7 @@ import './style.styl';
require('./tags');
import init from '../init';
const route = require('./router');
import route from './router';
/**
* init