mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-07 10:05:50 +08:00
11 lines
317 B
TypeScript
11 lines
317 B
TypeScript
import {CLASSROOM_INTRO_STORAGE_KEY} from '~~/shared/constants/storage'
|
|
|
|
export default defineNuxtRouteMiddleware(() => {
|
|
if (process.server) return
|
|
|
|
const introComplete = localStorage.getItem(CLASSROOM_INTRO_STORAGE_KEY) === 'true'
|
|
if (!introComplete) {
|
|
return navigateTo('/classroom-introduction')
|
|
}
|
|
})
|