Refactor AppHeader and AreaTabs components for improved layout and functionality
- Adjusted AppHeader.vue for better spacing and alignment of elements, enhancing the overall visual appeal. - Updated AreaTabs.vue to include a new 'Start' tab with a home icon, improving navigation options. - Modified route handling in AreaTabs.vue to dynamically determine the current area based on the route. - Changed default redirect destination in useAuth.ts to the root path for a more intuitive user experience. - Enhanced index.vue to provide a more welcoming message and improved content presentation. These changes aim to enhance user navigation and overall experience within the application.
This commit is contained in:
@@ -39,7 +39,7 @@ export function useAuth() {
|
||||
|
||||
// Redirect to products page or saved destination
|
||||
const redirectAfterLogin = useCookie('redirect_after_login')
|
||||
const destination = redirectAfterLogin.value || '/products'
|
||||
const destination = redirectAfterLogin.value || '/'
|
||||
redirectAfterLogin.value = null // Clear cookie
|
||||
|
||||
navigateTo(destination)
|
||||
|
||||
Reference in New Issue
Block a user