每个模块首页更新
Former-commit-id: d459515f384d47ea5a84671050246eb5fe658304 [formerly d459515f384d47ea5a84671050246eb5fe658304 [formerly d459515f384d47ea5a84671050246eb5fe658304 [formerly d459515f384d47ea5a84671050246eb5fe658304 [formerly 1d08416010fed1f2f67f487d4c93ced2334e5bd9 [formerly a2250bf183540eb016a76fe6891d4930f7aeaec3]]]]] Former-commit-id: 9a5f6e3a97a23ad6734a87e93284351eff9cfa9a Former-commit-id: 48e636d6f3a252a6c3c89ecbbdc36b4b969d78e9 Former-commit-id: 0aa75a50770886d77d4f4660e11c9874819c3d01 [formerly 66c909149fc309b1715821d6512cc3288c3e0ac6] Former-commit-id: de834b5ea328ac1aa664371f6d5c7044b96e8d4d Former-commit-id: a049a32d41ac698119dafdde87842963097357a8 Former-commit-id: b17192706355ac212cd0224006f76c1ba47d50ea Former-commit-id: d70f7c1eb4ac0b5941003faabfab4bd1342035c8 Former-commit-id: 3f00dfc99f25c34d7033fabcf98a0f8784b7f4ae
This commit is contained in:
@@ -21,13 +21,13 @@ function pathInit ({
|
||||
const uuid = util.cookies.get('uuid') || 'ghost-uuid'
|
||||
const currentPath = `${dbName}.${user ? `user.${uuid}` : 'public'}${path ? `.${path}` : ''}`
|
||||
const value = db.get(currentPath).value()
|
||||
console.group('pathInit')
|
||||
console.log('dbName', dbName)
|
||||
console.log('path', path)
|
||||
console.log('user', user)
|
||||
console.log('defaultValue', defaultValue)
|
||||
console.log('value', value)
|
||||
console.groupEnd()
|
||||
// console.group('pathInit')
|
||||
// console.log('dbName', dbName)
|
||||
// console.log('path', path)
|
||||
// console.log('user', user)
|
||||
// console.log('defaultValue', defaultValue)
|
||||
// console.log('value', value)
|
||||
// console.groupEnd()
|
||||
if (!(value !== undefined && validator(value))) {
|
||||
db
|
||||
.set(currentPath, defaultValue)
|
||||
|
||||
Reference in New Issue
Block a user