Tensorflow
This commit is contained in:
@@ -15,7 +15,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
createRoom() {
|
||||
this.axios.get("http://localhost:4000/rooms/add").then((res) => {
|
||||
this.axios.get("http://50.100.180.37:4000/rooms/add").then((res) => {
|
||||
let id = res.data._id;
|
||||
let playerId = res.data.playerId;
|
||||
this.setCookie("playerId", playerId, 1);
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
},
|
||||
joinRoom() {
|
||||
console.log(this.room);
|
||||
this.axios.post("http://localhost:4000/rooms/join", this.room).then((res) => {
|
||||
this.axios.post("http://50.100.180.37:4000/rooms/join", this.room).then((res) => {
|
||||
let playerId = res.data._id;
|
||||
this.setCookie("playerId", playerId, 1);
|
||||
this.$router.push({path: `game/${this.room.id}`});
|
||||
|
||||
Reference in New Issue
Block a user