Open
Description
When we do theme customization, we often need to define routes for some pages. When I redefine the route for the 404 page, I found that it didn't work. I don't have the part I defined in the router instance. I feel very strange.
I enhanced the Vue instance with the enhancementApp.js file in the theme, where the code for the route enhancement section is:
router.addRoutes([{
Path: '*', redirect: '/404'
}])
No matter how I define it, path: '*' seems to be overwritten by GlobalLayout.vue.
Is there a solution to this problem?