I have successfully completed the creation of the user registration form.
Once the sign-up process is finished, my goal is to have the page redirect back to the home page.
I have now integrated vue-router using the vue CLI command.
Initially, I tried placing the router method after this.$store.dispatch('signUpUser', signUpData) in the code below. However, I encountered difficulties.
Ultimately, I decided to implement this.$router.push({name: "Home"}) after executing the jobsDone action, considering I have a vuex file.
I also experimented with this.$router.replace('/').
Yet, I am still facing challenges resolving this issue.
The registration form can be found in Register.vue. It includes various form inputs for fullname, phone number, email, and password validation.
In my router/index.js file, the designated redirect page is named 'Home' with the path set to '/'.
Furthermore, I utilized the router-view component in the App.vue and Pro.vue files, specifically for admin users.
Pro.vue includes a navigation bar with features for displaying user information, selling products, and logging out.
I am seeking assistance to overcome the obstacles I am currently facing. Your support is greatly appreciated!