📜  vue 路由器接受参数 null - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:09.633000             🧑  作者: Mango

代码示例1
Just adding a question mark ? will make it optional.

{
    path: '/offers/:member?',
    ...
},
It works for Vue Router 2.0 onward.