Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -56,9 +56,10 @@ const SignIn = () => { | ... | @@ -56,9 +56,10 @@ const SignIn = () => { |
56 | 56 | ||
57 | const signIn = () => { | 57 | const signIn = () => { |
58 | http.post('/login').then(response => { | 58 | http.post('/login').then(response => { |
59 | - const { success, code, data, message } = response.data | 59 | + const { success, access_token } = response.data |
60 | if (success) { | 60 | if (success) { |
61 | - | 61 | + localStorage.setItem('token', access_token) |
62 | + setSuccess(true) | ||
62 | } | 63 | } |
63 | }) | 64 | }) |
64 | } | 65 | } | ... | ... |
-
Please register or login to post a comment