Ver Fonte

register use post

Csy817 há 7 anos atrás
pai
commit
9716108d91
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      src/components/login/Login.js

+ 6 - 1
src/components/login/Login.js

@@ -153,7 +153,12 @@ class Login extends Component {
                                                 avatar: ''
                                             }
                                         });
-                                        axios.get(`${this.state.register_url}?user-id=${id}&password=${this.state.register_password}&token=WXgraphql4Io`)
+                                        axios.post(this.state.register_url,
+                                            {
+                                                'user-id': id,
+                                                password: this.state.register_password,
+                                                token:'WXgraphql4Io'
+                                            })
                                             .then(function (response) {
                                                 if (response.status === 200)
                                                     _this.setState({