diff --git a/src/App.js b/src/App.js
index 9e23c05..37c050f 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,29 +1,12 @@
-import React from "react"
-import { BrowserRouter, Routes, Route } from 'react-router-dom'
-import RouterView from "./router/index"
-import config from './router/config'
-
-// import Login from "./pages/login/Login"
-
+import React from 'react';
+import Router from './router/index';
function App() {
return (
- //
- //
- //
- //
- //
-
-
-
- //
- //
- //
- // }>
- //
- //
- //
- )
+
+
+
+ );
}
-export default App
\ No newline at end of file
+export default App;
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 978902e..f725df8 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,45 +1,24 @@
-import React, {Suspense} from "react";
-import { Redirect, Route, Switch } from 'react-router-dom'
-import routes from './config'
+import React from 'react';
+import routes from "./routes";
+import { BrowserRouter, Route, Routes } from "react-router-dom";
-const RouterView = () => {
- // const { routes } = props
- // console.log(routes)
+function router() {
+ return (
+
+
+ {routes.map((item) => {
+ return (
+ }
+ />
+ );
+ })}
+
+
+ );
+ }
- return
-
- {
- routes.map(route => {
- if (route.redirect) {
- return
-
-
- } else {
- return
-
- }
- })}
-
-
-
-
- // routes.map((item, index) => {
- // return (
- //
- //
- //
- // )
- // })
-}
-
-export default RouterView
-
-{/* */ }
\ No newline at end of file
+export default router;
diff --git a/src/router/config.js b/src/router/routes.js
similarity index 67%
rename from src/router/config.js
rename to src/router/routes.js
index 45967b6..01f83c0 100644
--- a/src/router/config.js
+++ b/src/router/routes.js
@@ -1,7 +1,7 @@
import { lazy } from "react"
-import { v4 as uuid } from 'uuid'
+import { v4 as uuid} from 'uuid'
-const routes = [
+const routers = [
{
id: uuid(),
path: '/login',
@@ -9,4 +9,4 @@ const routes = [
}
]
-export default routes
\ No newline at end of file
+export default routers
\ No newline at end of file