通配符路由

PathMatch.png

{ 
      path: '/:pathMatch(.*)*', 
      name: 'not-found', 
      component: () => import('@/views/NotFoundView.vue') 
    },

1

2

3

4

5

6

最后修改:2025 年 09 月 08 日
如果觉得我的文章对你有用,请随意赞赏