Commit bb82875e authored by amandazk's avatar amandazk

Create mudanças

parent 2da16ac9
......@@ -89,8 +89,8 @@ export default {
};
},
created() {
this.getPessoa()
this.getFone()
this.getPessoa();
this.getFone();
},
methods: {
getPessoa() {
......@@ -117,7 +117,7 @@ export default {
console.log(response);
});
},
add() {
addPessoa() {
axios
.post("http://localhost:8000/api/pessoas/add/", this.pessoa, {
headers: {
......@@ -130,6 +130,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("updatePessoa");
// 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