other smaller: little type fixes, little changes to ui - more readable category chooser - result screen with correct, incorrect and chosen answers little changes to readme
9 lines
206 B
TypeScript
9 lines
206 B
TypeScript
export default defineNuxtRouteMiddleware(async () => {
|
|
const examStore = useExamStore();
|
|
if (examStore.end) {
|
|
return '/result';
|
|
}
|
|
if (examStore.category === '') {
|
|
return '/anomaly';
|
|
}
|
|
});
|