优化
Former-commit-id: 4d3b3dba4b787cc551e868f564481a9c9d1005cd [formerly 4d3b3dba4b787cc551e868f564481a9c9d1005cd [formerly 4d3b3dba4b787cc551e868f564481a9c9d1005cd [formerly 4d3b3dba4b787cc551e868f564481a9c9d1005cd [formerly a1bee0a09872436a8178d2f3ff28dfcfa1334527 [formerly 165ed9ed5023c54e8b77aaad78d2a08dab1850a7]]]]] Former-commit-id: 6b575639a46cc5b724f1a86715d5d94419dbb38b Former-commit-id: 6e277e97e0ccea94986808b8bcaa49c4e31735a9 Former-commit-id: 3df022a4669e4f8d8e92e548de06d5a5aa793b07 [formerly a28d57f91d62a7f34fdd1861ddaee196f9951596] Former-commit-id: b6878bde8a3b1b90f63ad788741593a70dfb2e13 Former-commit-id: 4ee5dbc6e4a8ed07b4f6bb0ec4a91b94242bcab1 Former-commit-id: 2c886cd2db7924007a8b70089da78bea41996ae7 Former-commit-id: 2fb2dee79878ab07bb821549dd78ce6a80a6d975 Former-commit-id: 6b5b3c21ff34740bc59f760ea6c7f181d1526501
This commit is contained in:
@@ -5,11 +5,17 @@ import { version } from '../../package'
|
||||
const adapter = new LocalStorage(`d2admin-${version}`)
|
||||
const db = low(adapter)
|
||||
|
||||
console.group('db')
|
||||
console.log(`db.get('themeActiveName').value()`, db.get('themeActiveName').value())
|
||||
console.log(`db.get('pageOpenedList').value()`, db.get('pageOpenedList').value())
|
||||
console.log(`db.get('userInfo').value()`, db.get('userInfo').value())
|
||||
console.groupEnd()
|
||||
|
||||
// 初始化数据库
|
||||
db.defaults({
|
||||
themeActiveName: [],
|
||||
pageOpenedList: [],
|
||||
userInfo: []
|
||||
})
|
||||
.write()
|
||||
}).write()
|
||||
|
||||
export default db
|
||||
|
||||
Reference in New Issue
Block a user