addRoute() with name couldn't replace the existing rule with the same name. #3517
Open
Description
Version
3.5.1
Reproduction link
https://github.com/klwfwdk/addroute-issue
Steps to reproduce
1.click to call router.addRoute() to add a new router named 'About' witch has the same name attribute with a route rule already existing.
2.click router-link 'About'
What is expected?
the route overwrite into new one. The browser should show 'This is an about page New'
What is actually happening?
Still appears as an unupdated component. The browser showed 'This is an about page'