mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-07-25 15:59:58 +08:00
Finished: other picbed page
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
import db from '~/datastore'
|
||||
export default {
|
||||
name: '',
|
||||
data () {
|
||||
return {
|
||||
defaultPicBed: db.read().get('picBed.current').value()
|
||||
defaultPicBed: this.$db.read().get('picBed.current').value()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setDefaultPicBed (type) {
|
||||
db.read().set('picBed.current', type).write()
|
||||
this.$db.read().set('picBed.current', type).write()
|
||||
this.defaultPicBed = type
|
||||
this.$electron.ipcRenderer.send('updateDefaultPicBed', type)
|
||||
const successNotification = new window.Notification('设置默认图床', {
|
||||
|
||||
Reference in New Issue
Block a user