|
|
@@ -127,7 +127,7 @@ class Login extends Component {
|
|
|
<Button type='primary' onClick={() => {
|
|
|
request('http://123.206.193.98:3000/graphql', SEARCH_USER, {username: this.state.register_username}).then(data => {
|
|
|
if (data.user_by_props.length === 0) {
|
|
|
- let id = idGen('userID');
|
|
|
+ let id = idGen('user');
|
|
|
let _this = this;
|
|
|
create_user({
|
|
|
variables: {
|