11 lines
229 B
TypeScript
11 lines
229 B
TypeScript
![]() |
export default defineNuxtRouteMiddleware((to, from) => {
|
||
|
const examStore = useExamStore();
|
||
|
|
||
|
if (examStore.category != "") {
|
||
|
examStore.mildReset();
|
||
|
} else {
|
||
|
examStore.resetExam();
|
||
|
return navigateTo("/");
|
||
|
}
|
||
|
});
|