hippofish/packages/client/src/reactiveAccount.ts
ThatOneCalculator 452f29bcb3
Revert "chore: 🚨 lint"
This reverts commit f7ce60cd9f.
2023-12-04 23:12:33 -08:00

9 lines
252 B
TypeScript

import { reactive } from "vue";
import type { Account } from "@/account";
const accountData = localStorage.getItem("account");
// TODO: 外部からはreadonlyに
export const $i = accountData
? reactive(JSON.parse(accountData) as Account)
: null;