🐛 修复 ck 无法刷新问题

This commit is contained in:
BTMuli
2023-05-21 18:56:06 +08:00
parent 3dd24bf983
commit c63ff84827
2 changed files with 5 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ export const useUserStore = defineStore(
return cookie.value[key] || "";
}
async function initCookie (ck: Record<string, string>): Promise<void> {
function initCookie (ck: Record<string, string>): void {
if (cookie.value !== ck) {
cookie.value = ck;
}