Added: miniWindowOntop option

This commit is contained in:
Molunerfinn
2018-09-07 17:32:11 +08:00
parent 0daafa3964
commit 6fca0e73c0
3 changed files with 21 additions and 2 deletions

View File

@@ -76,6 +76,16 @@
@change="handleUploadNotification"
></el-switch>
</el-form-item>
<el-form-item
label="mini窗口置顶"
>
<el-switch
v-model="form.miniWindowOntop"
active-text=""
inactive-text=""
@change="handleMiniWindowOntop"
></el-switch>
</el-form-item>
<el-form-item
label="选择显示的图床"
>
@@ -201,7 +211,8 @@ export default {
autoStart: this.$db.get('picBed.autoStart').value() || false,
rename: this.$db.get('picBed.rename').value() || false,
autoRename: this.$db.get('picBed.autoRename').value() || false,
uploadNotification: this.$db.get('picBed.uploadNotification').value() || false
uploadNotification: this.$db.get('picBed.uploadNotification').value() || false,
miniWindowOntop: db.read().get('miniWindowOntop').value() || false
},
picBed: this.$picBed,
keyBindingVisible: false,
@@ -316,6 +327,10 @@ export default {
},
handleUploadNotification (val) {
this.$db.read().set('picBed.uploadNotification', val).write()
},
handleMiniWindowOntop (val) {
this.$db.read().set('miniWindowOntop', val).write()
this.$message('需要重启生效')
}
},
beforeDestroy () {