vue 路由

//变化监听
watch: {
        $route() {
            // ---
        }
    }
路由不存在适合,重定向到A对应的路由
{
        path: '*',
        redirect: A
    }
路由未匹配到时候展示A组件
{
        path: '*',
        component: A
    }
原文地址:https://www.cnblogs.com/Running00/p/13088391.html