mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 08:40:28 +00:00
fix redirect
This commit is contained in:
parent
f6ed3646bf
commit
01ab98af36
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
if (auth.self === null) {
|
if (auth.self === null) {
|
||||||
const { data, error } = await api.self();
|
const { data, error } = await api.self();
|
||||||
if (error) {
|
if (error) {
|
||||||
navigateTo("/login");
|
navigateTo("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
auth.$patch({ self: data.item });
|
auth.$patch({ self: data.item });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue