import { defineComponent } from "vue"; export default defineComponent({ beforeRouteEnter(to, from, next) { console.log(from.meta) next((vm) => { }); }, }); </script>