feat: Implement core course management, enrollment, and classroom learning functionalities with new composables and components.
This commit is contained in:
parent
05755992a7
commit
754f211a08
4 changed files with 221 additions and 66 deletions
|
|
@ -451,6 +451,12 @@ export const useAuth = () => {
|
|||
token.value = null
|
||||
refreshToken.value = null // ลบ Refresh Token
|
||||
user.value = null
|
||||
|
||||
// Reset client-side storage
|
||||
if (import.meta.client) {
|
||||
localStorage.clear()
|
||||
}
|
||||
|
||||
const router = useRouter()
|
||||
router.push('/auth/login')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue