diff --git a/src/components/CommunityComponents/NewCommunityForm.vue b/src/components/CommunityComponents/NewCommunityForm.vue index 7a62e90f302416559f695459aafcfddfd6f43244..a088cd5d4f487b4e5cf2d36d7d81c7a823be802e 100644 --- a/src/components/CommunityComponents/NewCommunityForm.vue +++ b/src/components/CommunityComponents/NewCommunityForm.vue @@ -278,12 +278,13 @@ export default { location: this.group.place, picture: this.group.image, }; - - console.log(this.group.image); - const respone = await postNewgroup(groupInfo); if (respone.status === 200 || respone.status === 201) { - this.$router.push({ path: "/", replace: true }); + this.$store.commit("addAdmin", respone.data); + this.$router.push({ + path: "/community/" + respone.data, + replace: true, + }); } } },