mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-12 13:48:28 +09:00
[Client] Fix bug
This commit is contained in:
parent
8f577ec248
commit
4a04e679d1
@ -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');
|
||||
|
@ -7,7 +7,7 @@ import './style.styl';
|
||||
|
||||
require('./tags');
|
||||
import init from '../init';
|
||||
const route = require('./router');
|
||||
import route from './router';
|
||||
|
||||
/**
|
||||
* init
|
||||
|
Loading…
Reference in New Issue
Block a user