Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정민우
/
vps_service
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
ch4n3.yoon
2021-05-14 17:35:25 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c8d95755c28e68f35e5206653b958bf3b60b1b6
6c8d9575
1 parent
e364827a
[Edit] Missing Key 에러 해결
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
frontend/src/components/SignIn.js
frontend/src/components/SignIn.js
View file @
6c8d957
...
...
@@ -55,7 +55,10 @@ const SignIn = () => {
}
const
signIn
=
()
=>
{
http
.
post
(
'/login'
).
then
(
response
=>
{
http
.
post
(
'/login'
,
{
userId
:
username
,
password
:
password
,
}).
then
(
response
=>
{
const
{
success
,
access_token
}
=
response
.
data
if
(
success
)
{
localStorage
.
setItem
(
'token'
,
access_token
)
...
...
Please
register
or
login
to post a comment