mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-18 01:44:36 +08:00
封装 dbstorage
This commit is contained in:
@@ -42,6 +42,9 @@ let getDocs = key => {
|
||||
return whole.db.allDocs(key)
|
||||
}
|
||||
|
||||
let setStorage = whole.dbStorage.setItem
|
||||
let getStorage = whole.dbStorage.getItem
|
||||
|
||||
const nativeId = utools.getNativeId()
|
||||
|
||||
let userData = {
|
||||
@@ -79,7 +82,8 @@ export default {
|
||||
getDB,
|
||||
putDB,
|
||||
delDB,
|
||||
getDocs,
|
||||
setStorage,
|
||||
getStorage,
|
||||
userData,
|
||||
DBPRE,
|
||||
}
|
||||
Reference in New Issue
Block a user