Commit 51526d6f authored by amandazk's avatar amandazk

Create pessoas

parent a6599416
......@@ -156,19 +156,19 @@ export default {
this.log.console(response);
});
},
// addFone() {
// axios
// .post("http://localhost:8000/api/fones/add/", this.fone, {
// headers: {
// Authorization: `Token ${this.$session.get("token")}`,
// },
// })
// .then((response) => {
// this.dialog = false;
// this.$emit("updateFone");
// this.log.console(response);
// });
// },
addFone() {
axios
.post("/api/fones/add/", this.fone, {
headers: {
Authorization: `Token ${this.$session.get("token")}`,
},
})
.then((response) => {
this.dialog = false;
this.$emit("updateFone");
this.log.console(response);
});
},
},
};
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment