mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-21 16:15:45 +00:00
fix erroro
This commit is contained in:
parent
5c217c11d2
commit
2231c54f21
1 changed files with 7 additions and 1 deletions
|
@ -34,7 +34,13 @@
|
|||
const toast = useNotifier();
|
||||
|
||||
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 router = useRouter();
|
||||
|
|
Loading…
Reference in a new issue