mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-23 22:19:53 +08:00
🔨 Refactor: db class
This commit is contained in:
@@ -21,7 +21,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
if (this.type === this.$db.get('picBed.current').value()) {
|
||||
if (this.type === this.$db.get('picBed.current')) {
|
||||
this.value = true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -83,7 +83,7 @@ export default {
|
||||
deep: true,
|
||||
handler (val) {
|
||||
this.ruleForm = Object.assign({}, {})
|
||||
const config = this.$db.read().get(`picBed.${this.id}`).value()
|
||||
const config = this.$db.get(`picBed.${this.id}`)
|
||||
if (val.length > 0) {
|
||||
this.configList = cloneDeep(val).map(item => {
|
||||
let defaultValue = item.default !== undefined
|
||||
|
||||
@@ -18,7 +18,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this.$db.read().get('settings.shortKey')
|
||||
this.$db.get('settings.shortKey')
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user