minor: - change background for category list for dark theme compatibility - try to 'fix' video playback errors in console
11 lines
267 B
TypeScript
11 lines
267 B
TypeScript
export default defineNuxtRouteMiddleware(async () => {
|
|
const examStore = useExamStore();
|
|
const localePath = useLocalePath();
|
|
|
|
if (examStore.end) {
|
|
return localePath('result');
|
|
}
|
|
if (examStore.category === '') {
|
|
return localePath('anomaly');
|
|
}
|
|
});
|