feat(storage): add new storage (#48)

* feat(storage): add new storage,新增 database 和 cookie 存储
* fix(storage): 区分用户,获取当前存储路径时,应该获取当前用户,用来区分用户
* fix: ts alias mapping
* chore: remove lodash
* fix(storage): replace lodash with lodash-es
* fix(storage): initialization,Initialization failed, unable to write
This commit is contained in:
hb0730
2021-09-29 09:07:54 +08:00
committed by GitHub
parent 6d814316c2
commit e661f60f13
9 changed files with 175 additions and 12 deletions

2
types/global.d.ts vendored
View File

@@ -65,6 +65,8 @@ declare global {
declare interface ViteEnv {
VITE_PORT: number;
VITE_TITLE: string;
VITE_VERSION: string;
VITE_USE_MOCK: boolean;
VITE_USE_PWA: boolean;
VITE_PUBLIC_PATH: string;