fix: UI improvements

This commit is contained in:
qier222 2020-12-09 20:01:59 +08:00
parent 6954d91907
commit 5f0828342c
3 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
export function ipcRenderer(vueInstance) {
const self = vueInstance;
// 添加专有的类名
document.body.classList.add("is-electron");
document.body.setAttribute("data-electron", "yes");
// ipc message channel
const electron = window.require("electron");
const ipcRenderer = electron.ipcRenderer;