mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
[Client] Fix bug
This commit is contained in:
parent
6c261356da
commit
7af3da41a9
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