Skip to content

Commit

Permalink
feat: 초기페이지 접속시 main으로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriinnn committed Jun 14, 2024
1 parent 80891b5 commit 50df588
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/component/frame/Router.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import { BrowserRouter as Router, Route, Routes, Navigate } from 'react-router-dom';

import Login from "../myPage/Login.js";
import Main from "../main/Main.js";
Expand Down Expand Up @@ -38,6 +38,7 @@ const AppRouter = () => {
<Route path="/WishList" element={<WishList />} />
<Route path="/MyChat" element={<MyChat />} />
<Route path="KakaoRedirect" element={<KakaoRedirect/>} />
<Route path="/" element={<Navigate to="/Main" />} /> {/* '/'로 접속 시 '/main'으로 이동 */}
</Routes>
<Footer />
</Router>
Expand Down

0 comments on commit 50df588

Please sign in to comment.