mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
fix: log out issue
This commit is contained in:
parent
d5c619567a
commit
333c97bfca
3 changed files with 20 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ export default function Header() {
|
|||
</li>
|
||||
<li title="Logout">
|
||||
<Link
|
||||
to={`${import.meta.env.VITE_API_URL}/api/auth/signout`}
|
||||
to={`${import.meta.env.VITE_API_URL}/api/auth/logout`}
|
||||
aria-label="Log Out"
|
||||
className="pill button p-2! aspect-square h-full"
|
||||
data-tooltip="Log Out"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export default function ProfileLayout() {
|
|||
return;
|
||||
}
|
||||
|
||||
fetch(`${import.meta.env.VITE_API_URL}/api/profile/${userId}/info`)
|
||||
fetch(`${import.meta.env.VITE_API_URL}/api/profile/${userId}/info`, { cache: "no-store" })
|
||||
.then((res) => {
|
||||
if (!res.ok) throw new Error("Failed to fetch profile");
|
||||
return res.json();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue