Skip to content

Instantly share code, notes, and snippets.

@MikeCheng1208
Last active January 18, 2019 05:22
Show Gist options
  • Save MikeCheng1208/0ae06c02bfa5425c0be1a1113cb2e103 to your computer and use it in GitHub Desktop.
Save MikeCheng1208/0ae06c02bfa5425c0be1a1113cb2e103 to your computer and use it in GitHub Desktop.
api demo2
//引入api.js 可以確保你網站的來源都是同一個進入點
import { apiUserLogin, apiUserLogout, apiUserSignUp } from "api.js";
apiUserLogin({
email: "mike@gmail.com",
password: "123456789"
})
.then(res=> {
console.log(res);
})
.catch(err=> {
console.log(err);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment