chore: version info modal

This commit is contained in:
jialin
2024-07-12 12:06:17 +08:00
parent c5327d3e56
commit 320db56fbe
38 changed files with 334 additions and 108 deletions
+8 -1
View File
@@ -8,7 +8,14 @@ export const clearAtomStorage = (atom: any) => {
store.set(atom, null);
};
export const getAtomStorage = (atom: any) => {
export const setAtomStorage = (atom: any, value: any) => {
if (!atom) {
return;
}
const store = getDefaultStore();
store.set(atom, value);
};
export const getAtomStorage = (atom: any): any => {
if (!atom) {
return null;
}