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

View File

@@ -15,6 +15,7 @@ const pathResolve = (dir: string): any => {
const alias: Record<string, string> = {
"/@": pathResolve("src"),
"@build": pathResolve("build"),
//解决开发环境下的警告 You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.
"vue-i18n": "vue-i18n/dist/vue-i18n.cjs.js"
};