Here is a bad example of redirecting the user to /login if they are not authenticated: js // BAD router.beforeEach((to, from, next) => { if (to.name !==
確定! 回上一頁