mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-02 19:18:13 -05:00
parent
4f0809e6b3
commit
21d3942d2b
@ -28,7 +28,8 @@ export function createContextMenu () {
|
|||||||
checked: db.get('picBed.current') === item.type,
|
checked: db.get('picBed.current') === item.type,
|
||||||
click () {
|
click () {
|
||||||
picgo.saveConfig({
|
picgo.saveConfig({
|
||||||
'picBed.current': item.type
|
'picBed.current': item.type,
|
||||||
|
'picBed.uploader': item.type
|
||||||
})
|
})
|
||||||
if (windowManager.has(IWindowList.SETTING_WINDOW)) {
|
if (windowManager.has(IWindowList.SETTING_WINDOW)) {
|
||||||
windowManager.get(IWindowList.SETTING_WINDOW)!.webContents.send('syncPicBed')
|
windowManager.get(IWindowList.SETTING_WINDOW)!.webContents.send('syncPicBed')
|
||||||
|
@ -28,7 +28,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
choosePicBed (val) {
|
choosePicBed (val) {
|
||||||
this.letPicGoSaveData({
|
this.letPicGoSaveData({
|
||||||
'picBed.current': this.type
|
'picBed.current': this.type,
|
||||||
|
'picBed.uploader': this.type
|
||||||
})
|
})
|
||||||
this.$emit('update:choosed', this.type)
|
this.$emit('update:choosed', this.type)
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,8 @@ export default class extends Vue {
|
|||||||
checked: this.$db.get('picBed.current') === item.type,
|
checked: this.$db.get('picBed.current') === item.type,
|
||||||
click () {
|
click () {
|
||||||
_this.letPicGoSaveData({
|
_this.letPicGoSaveData({
|
||||||
'picBed.current': item.type
|
'picBed.current': item.type,
|
||||||
|
'picBed.uploader': item.type
|
||||||
})
|
})
|
||||||
ipcRenderer.send('syncPicBed')
|
ipcRenderer.send('syncPicBed')
|
||||||
}
|
}
|
||||||
|
@ -433,7 +433,8 @@ export default class extends Vue {
|
|||||||
const current = this.$db.get('picBed.current')
|
const current = this.$db.get('picBed.current')
|
||||||
if (current === name) {
|
if (current === name) {
|
||||||
this.letPicGoSaveData({
|
this.letPicGoSaveData({
|
||||||
'picBed.current': 'smms'
|
'picBed.current': 'smms',
|
||||||
|
'picBed.uploader': 'smms'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,8 @@ export default class extends Vue {
|
|||||||
checked: this.$db.get('picBed.current') === item.type,
|
checked: this.$db.get('picBed.current') === item.type,
|
||||||
click () {
|
click () {
|
||||||
_this.letPicGoSaveData({
|
_this.letPicGoSaveData({
|
||||||
'picBed.current': item.type
|
'picBed.current': item.type,
|
||||||
|
'picBed.uploader': item.type
|
||||||
})
|
})
|
||||||
ipcRenderer.send('syncPicBed')
|
ipcRenderer.send('syncPicBed')
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,8 @@ export default class extends Vue {
|
|||||||
}
|
}
|
||||||
setDefaultPicBed (type: string) {
|
setDefaultPicBed (type: string) {
|
||||||
this.letPicGoSaveData({
|
this.letPicGoSaveData({
|
||||||
'picBed.current': type
|
'picBed.current': type,
|
||||||
|
'picBed.uploader': type
|
||||||
})
|
})
|
||||||
// @ts-ignore 来自mixin的数据
|
// @ts-ignore 来自mixin的数据
|
||||||
this.defaultPicBed = type
|
this.defaultPicBed = type
|
||||||
|
@ -5,7 +5,8 @@ export default class extends Vue {
|
|||||||
defaultPicBed = this.$db.get('picBed.current')
|
defaultPicBed = this.$db.get('picBed.current')
|
||||||
setDefaultPicBed (type: string) {
|
setDefaultPicBed (type: string) {
|
||||||
this.letPicGoSaveData({
|
this.letPicGoSaveData({
|
||||||
'picBed.current': type
|
'picBed.current': type,
|
||||||
|
'picBed.uploader': type
|
||||||
})
|
})
|
||||||
this.defaultPicBed = type
|
this.defaultPicBed = type
|
||||||
const successNotification = new Notification('设置默认图床', {
|
const successNotification = new Notification('设置默认图床', {
|
||||||
|
@ -29,7 +29,7 @@ class DB {
|
|||||||
|
|
||||||
if (!this.db.has('picBed').value()) {
|
if (!this.db.has('picBed').value()) {
|
||||||
this.db.set('picBed', {
|
this.db.set('picBed', {
|
||||||
current: 'smms',
|
current: 'smms', // deprecated
|
||||||
uploader: 'smms',
|
uploader: 'smms',
|
||||||
smms: {
|
smms: {
|
||||||
token: ''
|
token: ''
|
||||||
|
Loading…
Reference in New Issue
Block a user