🐛 Fix: decrease title-bar z-index when config-form dialog shows

This commit is contained in:
Molunerfinn 2019-12-28 16:50:29 +08:00
parent 9d4d605acf
commit f2750e1234

View File

@ -145,6 +145,16 @@ export default class extends Vue {
this.getPluginList() this.getPluginList()
} }
} }
@Watch('dialogVisible')
onDialogVisible (val: boolean) {
if (val) {
// @ts-ignore
document.querySelector('.main-content.el-row').style.zIndex = 101
} else {
// @ts-ignore
document.querySelector('.main-content.el-row').style.zIndex = 10
}
}
created () { created () {
this.os = process.platform this.os = process.platform
ipcRenderer.on('pluginList', (evt: IpcRendererEvent, list: IPicGoPlugin[]) => { ipcRenderer.on('pluginList', (evt: IpcRendererEvent, list: IPicGoPlugin[]) => {