Add educator annual pass functionality and update product listings
- Introduced a new page for educator annual passes, displaying relevant products with a dedicated layout and loading/error states. - Updated AreaTabs component to include the educator tab and adjusted routing logic. - Modified useAuth to redirect users to the products page after login. - Adjusted mock product prices and stock quantities in the database seeding script to reflect new pricing strategy. These changes enhance the user experience for educators and improve product visibility in the application.
This commit is contained in:
@@ -37,9 +37,9 @@ export function useAuth() {
|
||||
// Refresh user session
|
||||
await fetch()
|
||||
|
||||
// Redirect to homepage or saved destination
|
||||
// Redirect to products page or saved destination
|
||||
const redirectAfterLogin = useCookie('redirect_after_login')
|
||||
const destination = redirectAfterLogin.value || '/'
|
||||
const destination = redirectAfterLogin.value || '/products'
|
||||
redirectAfterLogin.value = null // Clear cookie
|
||||
|
||||
navigateTo(destination)
|
||||
|
||||
Reference in New Issue
Block a user