Skip to content

Commit

Permalink
Update src/App.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: LZS911 <42765421+LZS911@users.noreply.github.com>
  • Loading branch information
sjjian and LZS911 authored Apr 24, 2024
1 parent 2038159 commit 00c236c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export const Wrapper: React.FC<{ children: ReactNode }> = ({ children }) => {

function App() {
const dispatch = useDispatch();
React.useEffect(() => {
dispatch(updateToken({ token: getCookie(SQLE_COOKIE_TOKEN_KEY_NAME) }));
}, [])

const token = useSelector<IReduxState, string>((state) => state.user.token);
const { antdLocale } = useLanguage();
Expand Down

0 comments on commit 00c236c

Please sign in to comment.