feat: toggle log ws

This commit is contained in:
GyDi
2022-09-20 22:15:28 +08:00
parent 3a9e28ba48
commit 39a8ddcfec
4 changed files with 72 additions and 12 deletions

View File

@@ -15,6 +15,11 @@ export const atomLogData = atom<ApiType.LogItem[]>({
default: [],
});
export const atomEnableLog = atom<boolean>({
key: "atomEnableLog",
default: true,
});
// save the state of each profile item loading
export const atomLoadingCache = atom<Record<string, boolean>>({
key: "atomLoadingCache",