- Replaced manual logout handling in App.vue with a dedicated logout method for cleaner code. - Updated router.js to add public meta properties to several routes, improving route access management. - Implemented a global navigation guard to redirect unauthenticated users to the login page when accessing protected routes. - Modified the login process in Login.vue to support redirecting users back to their intended destination after successful login.
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.