vue 路由

//变化监听
watch: {
       $route() {
           // ---
       }
   }
路由不存在适合,重定向到A对应的路由
{
        path: '*',
        redirect: A
    }
路由未匹配到时候展示A组件
{
        path: '*',
        component: A
    }
posted @ 2020-06-10 20:05  Running00  阅读(105)  评论(0编辑  收藏  举报