🐛 Bug fixes on undefined cookies

This commit is contained in:
2024-09-22 18:00:14 +08:00
parent 6a73ac85a0
commit f52d9b6052
2 changed files with 6 additions and 6 deletions

View File

@@ -3,11 +3,11 @@ import { ref } from "vue"
import { solarFetch } from "~/utils/request"
export function useAtk() {
return useCookie("__hydrogen_atk", { watch: "shallow", maxAge: 31556952000 })
return useCookie("__hydrogen_atk", { path: "/", maxAge: 31556952000 })
}
export function useRtk() {
return useCookie("__hydrogen_rtk", { watch: "shallow", maxAge: 31556952000 })
return useCookie("__hydrogen_rtk", { path: "/", maxAge: 31556952000 })
}
export function useLoggedInState() {