yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint
路由守卫, 监听路由跳转的情况
-
全局守卫
实现路由切换的时候title切换
this.$router.beforeEach((to, from, next) => {})
-
路由独享守卫
登陆判断
routes 内路由表中写的
beforeEnter();
-
组件内的守卫
vue project test
yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint
路由守卫, 监听路由跳转的情况
全局守卫
实现路由切换的时候title切换
this.$router.beforeEach((to, from, next) => {})
路由独享守卫
登陆判断
routes 内路由表中写的
beforeEnter();
组件内的守卫
vue project test