fix erroro

This commit is contained in:
Hayden 2024-05-24 20:00:04 -05:00
parent 5c217c11d2
commit 2231c54f21
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -34,7 +34,13 @@
const toast = useNotifier(); const toast = useNotifier();
const pageForm = useRouteHash(PageForms.Login); const pageForm = useRouteHash(PageForms.Login);
const pageFormStr = computed(() => (pageForm.value[0] === "#" ? pageForm.value.slice(1) : pageForm.value)); const pageFormStr = computed(() => {
if (!pageForm.value) {
return PageForms.Login;
}
return pageForm.value[0] === "#" ? pageForm.value.slice(1) : pageForm.value;
});
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();