Skip to content

Commit

Permalink
Merge pull request #75 from Gosrock/dev
Browse files Browse the repository at this point in the history
fix : 마이페이지 리다이렉트, og 캐시
  • Loading branch information
9yujin authored Aug 16, 2022
2 parents c45cff9 + b23926e commit eee5c76
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@
## 6. 참여자
<table>
<tr align="center">
<td><B>기획UI/UX프론트 팀장<B></td>
<td><B>프론트<B></td>
<td><B>프론트<B></td>
<td><B>프론트<B></td>
<td><B>LeaderFront-endUI/UX<B></td>
<td><B>Front-end<B></td>
<td><B>Front-end<B></td>
<td><B>Front-end<B></td>
</tr>
<tr align="center">
<td><B>한규진<B></td>
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
property="og:description"
content="22번째 정기공연 [We are GOSROCK, Invites you]"
/>
<meta property="og:image" content="%PUBLIC_URL%/og.png" />
<meta property="og:image" content="%PUBLIC_URL%/og2209.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand Down
File renamed without changes
4 changes: 3 additions & 1 deletion src/pages/auth/Init.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import useInput from '../../hooks/useInput';
import { authState } from '../../stores/auth';
import { axiosPrivate } from '../../apis/axios';
import { useMutation } from 'react-query';
import { redirectState } from '../../stores/redirect';

const Init = () => {
const [value, bind] = useInput<string>('');
const [auth, setAuth] = useRecoilState(authState);
const redirectUri = useRecoilValue(redirectState);

const navigate = useNavigate();
const { mutate } = useMutation(AuthApi.register, {
Expand All @@ -20,7 +22,7 @@ const Init = () => {
axiosPrivate.defaults.headers.common[
'Authorization'
] = `Bearer ${res.data.accessToken}`;
navigate('/ticketing/select', { replace: true });
navigate(redirectUri || '/mypage', { replace: true });
},
});
const handleClickRegister = async () => {
Expand Down

0 comments on commit eee5c76

Please sign in to comment.