🐛 Fix: some bugs

ISSUES CLOSED: #722
This commit is contained in:
PiEgg
2021-08-21 10:42:52 +08:00
parent 2d3e779e0b
commit a676c083fe
8 changed files with 58 additions and 12 deletions

View File

@@ -17,6 +17,7 @@
:default-active="defaultActive"
@select="handleSelect"
:unique-opened="true"
@open="handleGetPicPeds"
>
<el-menu-item index="upload">
<i class="el-icon-upload"></i>
@@ -192,8 +193,8 @@ export default class extends Vue {
created () {
this.os = process.platform
this.buildMenu()
ipcRenderer.send('getPicBeds')
ipcRenderer.on('getPicBeds', this.getPicBeds)
this.handleGetPicPeds()
}
@Watch('choosedPicBedForQRCode')
@@ -207,6 +208,10 @@ export default class extends Vue {
}
}
handleGetPicPeds = () => {
ipcRenderer.send('getPicBeds')
}
handleSelect (index: string) {
const type = index.match(/picbeds-/)
if (type === null) {