add cache.

This commit is contained in:
xuyue committed 2023-04-17 13:50:11 +08:00
1 parent 3358082213
commit 9274326ac5
5 files changed
+47 -6

No files matched your search

+3 -1
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",
})