forked from FoundKeyGang/FoundKey
[Client] Fix bug
This commit is contained in:
parent
8f577ec248
commit
4a04e679d1
2 changed files with 3 additions and 3 deletions
|
@ -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 a new issue