This commit is contained in:
parent
a2f75ea49d
commit
8b91502ab5
21 changed files with 267 additions and 165 deletions
|
|
@ -4,9 +4,10 @@
|
|||
|
||||
import * as riot from 'riot';
|
||||
import * as route from 'page';
|
||||
import MiOS from '../common/mios';
|
||||
let page = null;
|
||||
|
||||
export default me => {
|
||||
export default (mios: MiOS) => {
|
||||
route('/', index);
|
||||
route('/selectdrive', selectDrive);
|
||||
route('/i/customize-home', customizeHome);
|
||||
|
|
@ -22,7 +23,7 @@ export default me => {
|
|||
route('*', notFound);
|
||||
|
||||
function index() {
|
||||
me ? home() : entrance();
|
||||
mios.isSignedin ? home() : entrance();
|
||||
}
|
||||
|
||||
function home() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue