add cache.

This commit is contained in:
2023-04-17 13:50:11 +08:00
parent 3358082213
commit 9274326ac5
5 changed files with 47 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
import { STORAGE_KEY } from "~/utils/constants"
import storage from "~/utils/storage"
import { Code } from "~/utils/types"
export const code = reactive<Code>({
value: "",
language: "C",
language: storage.get(STORAGE_KEY.LANGUAGE) || "C",
})