diff --git a/src/App.vue b/src/App.vue
index 7b31b6f..f106085 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,11 +5,7 @@
-
-
-
-
-
+
@@ -18,24 +14,21 @@
diff --git a/src/background.js b/src/background.js
index 3a59977..ee8d3ac 100644
--- a/src/background.js
+++ b/src/background.js
@@ -1,6 +1,6 @@
'use strict'
-import { app, protocol, BrowserWindow } from 'electron'
+import { app, protocol, ipcMain, BrowserWindow } from 'electron'
import {
createProtocol
} from 'vue-cli-plugin-electron-builder/lib'
@@ -58,6 +58,16 @@ app.on('activate', () => {
}
})
+ipcMain.on('min', e => win.minimize())
+ipcMain.on('max', e => {
+ if (win.isMaximized()) {
+ win.unmaximize()
+ } else {
+ win.maximize()
+ }
+})
+ipcMain.on('close', e => win.close())
+
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
diff --git a/src/components/zy_header.vue b/src/components/zy_header.vue
index c789695..88ed3e9 100644
--- a/src/components/zy_header.vue
+++ b/src/components/zy_header.vue
@@ -1,18 +1,19 @@
diff --git a/src/components/zy_sider.vue b/src/components/zy_sider.vue
index c82b0a3..96e745c 100644
--- a/src/components/zy_sider.vue
+++ b/src/components/zy_sider.vue
@@ -1,19 +1,30 @@
-
-
-
-
+
+
+
+
-
+