api.g.js 730 字节

// const LOGIN = gql`mutation login($identifier:String!, $password:String!){
// 				                    login(input:{
// 				                        identifier: $identifier
// 				                        password: $password
// 				                    }){
// 				                        jwt
// 				                        user {
// 				                            username
// 				                        }
// 				                    }
// 				                }`

// axios.post(graphqlURL, {
// 		query: print(LOGIN),
// 		variables: {
// 			identifier: this.email,
// 			password: this.password
// 		}
// 	})
// 	.then(res => {
// 		console.log(res)
// 	})
// 	.catch(err => {
// 		console.log(err)
// 	})