Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-09 20:41:30 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dd7529d26f7a46036179fa0143ad10c054c36372
dd7529d2
1 parent
22c92d18
로그인 시 username을 history에 기록
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
web/src/pages/Login.tsx
web/src/pages/Login.tsx
View file @
dd7529d
...
...
@@ -16,7 +16,10 @@ export const Login: React.FC = () => {
}
socket.emit('msg', rawMessage, (response : MessageResponse<undefined>) => {
if (response.ok) {
history.push('/rooms');
history.push({
pathname: '/rooms',
state: { username: username }
});
} else {
console.error('login error!'); // TODO: 팝업 에러?
}
...
...
Please
register
or
login
to post a comment