chore: first login modify password

This commit is contained in:
jialin
2024-06-29 20:29:11 +08:00
parent cf0113e8d8
commit d47e53114c
25 changed files with 337 additions and 113 deletions
+17
View File
@@ -0,0 +1,17 @@
import { getDefaultStore } from 'jotai';
export const clearAtomStorage = (atom: any) => {
if (!atom) {
return;
}
const store = getDefaultStore();
store.set(atom, null);
};
export const getAtomStorage = (atom: any) => {
if (!atom) {
return null;
}
const store = getDefaultStore();
return store.get(atom);
};