📜  vue 路由器 404 页面 - Javascript 代码示例

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

代码示例1
const ROUTER_INSTANCE = new VueRouter({
    mode: "history",
    routes: [
        { path: "/", component: HomeComponent },
        // ... other routes ...
        // and finally the default route, when none of the above matches:
        { path: "*", component: PageNotFound }
    ]
})