|
@@ -0,0 +1,29 @@
|
|
|
+/*
|
|
|
+ * @Author: Johnhong9527
|
|
|
+ * @Date: 2020-05-12 16:59:35
|
|
|
+ * @Last Modified by: Johnhong9527
|
|
|
+ * @Last Modified time: 2020-05-12 17:35:51
|
|
|
+ */
|
|
|
+import React from "react";
|
|
|
+import { Route } from "react-router-dom";
|
|
|
+import Header from "@/components/layout/Header.tsx";
|
|
|
+import { Route, NavLink } from "react-router-dom";
|
|
|
+import Home from "./Home.tsx";
|
|
|
+import Other from "./Other.tsx";
|
|
|
+
|
|
|
+export default class Dashboard extends React.Component {
|
|
|
+ render() {
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <Header />
|
|
|
+ <NavLink to="/home">to home</NavLink>
|
|
|
+ <br />
|
|
|
+ <NavLink exact to="/other">
|
|
|
+ to other
|
|
|
+ </NavLink>
|
|
|
+ <Route path="/home" component={Home} />
|
|
|
+ <Route path="/other" component={Other} />
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+ }
|
|
|
+}
|