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');
|
const route = require('page');
|
||||||
let page = null;
|
let page = null;
|
||||||
|
|
||||||
module.exports = me => {
|
export default me => {
|
||||||
route('/', index);
|
route('/', index);
|
||||||
route('/apps', apps);
|
route('/apps', apps);
|
||||||
route('/app/new', newApp);
|
route('/app/new', newApp);
|
||||||
|
@ -34,7 +35,6 @@ module.exports = me => {
|
||||||
route();
|
route();
|
||||||
};
|
};
|
||||||
|
|
||||||
import * as riot from 'riot';
|
|
||||||
function mount(content) {
|
function mount(content) {
|
||||||
if (page) page.unmount();
|
if (page) page.unmount();
|
||||||
const body = document.getElementById('app');
|
const body = document.getElementById('app');
|
||||||
|
|
|
@ -7,7 +7,7 @@ import './style.styl';
|
||||||
|
|
||||||
require('./tags');
|
require('./tags');
|
||||||
import init from '../init';
|
import init from '../init';
|
||||||
const route = require('./router');
|
import route from './router';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* init
|
* init
|
||||||
|
|
Loading…
Reference in a new issue