the story:
I am on product page #/product/7
and on the same page I have 4 more products that are similar to the one that is being viewed. All these products have links to their pages:
router-link(:to="{ name: 'product', params: { id: product.id }}" v-text='product.title')
.
the problem:
When I click on any of the product links, the url changes but the content remains the same. So, if I am on #/product/7
and click on #/product/8
the url only will change. If I navigate from /product/:id
page and click on a product it takes me to the right page with proper content.
![enter image description here](https://i.stack.imgur.com/JjAHv.jpg)
As you can see on screenshot, current product id is 15, but the content is the one from the id 7, as shown in url at the bottom while I was hovering over the Sleek Silk Shirt product in cart.
Any ideas how to fix this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…