add navbar listener

This commit is contained in:
riqo 2021-06-23 07:52:06 -05:00
commit d00fb0f3be
9 changed files with 82 additions and 32 deletions

View file

@ -16,16 +16,17 @@
// import { postNavBarExit, postNavBarMin } from "@/render/ipc";
import { defineComponent } from "vue";
import { postNavBar } from "@/render/ipc";
export default defineComponent({
name: "Header",
setup() {
const postNavBarExit = () => {};
const postNavBarMin = () => {};
return {
postNavBarExit,
postNavBarMin
}
const postNavBarExit = () => postNavBar('close');
const postNavBarMin = () => postNavBar('min');
return {
postNavBarExit,
postNavBarMin
}
}
});