take title valye from product title and put -
between space and push to new url
methods:{
product(value){
console.log(value)
const title = value.title
const clearTitle = title.replaceAll(' ','-')
console.log(clearTitle)
this.$router.push({
path:`/${clearTitle}/`,
})
},
receive this into new dynamic page and meke process
try{
const route = this.$router.history.current.path;
this.routeName = route
const title = route.split("-").join(" ");
const finalTitle = title.replace(/\\|\//g, "");
const res = await this.$axios.$get(`productByTitle/${finalTitle}/`);
this.obj = res.data;
this.title = this.obj.title
this.image = this.obj.image
this.description = res.data.description;
console.log(res.status)
}