router_20190416112338.js 811 Bytes
Newer Older
baiguangyao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';

class Router extends Component {
    constructor(props) {
        super(props);
        this.state = {}

        render() {
            const TabbarRender = () => {
                switch (window.location.pathname) {
                    case `${HOST}/`:
                        return <Tabbar></Tabbar>
                    case `${HOST}/repertoire`:
                        return <Tabbar></Tabbar>
                    case `${HOST}/me`:
                        return <Tabbar></Tabbar>
                    case `${HOST}/discover`:
                        return <Tabbar></Tabbar>
                }
                return null
            };
            return (
                
            )
        }
    }
}