|
@@ -2,12 +2,16 @@
|
|
<div class="home layout">
|
|
<div class="home layout">
|
|
<div class="home-head">
|
|
<div class="home-head">
|
|
<div class="head-logo"></div>
|
|
<div class="head-logo"></div>
|
|
- <div class="head-actions">
|
|
|
|
- <span class="action-icon action-min" title="最小化" @click="minWin">
|
|
|
|
|
|
+ <!-- <div class="head-actions">
|
|
|
|
+ <span
|
|
|
|
+ class="action-icon action-min"
|
|
|
|
+ title="最小化"
|
|
|
|
+ @click.stop="minWin"
|
|
|
|
+ >
|
|
</span>
|
|
</span>
|
|
- <span class="action-icon action-close" title="关闭" @click="close">
|
|
|
|
|
|
+ <span class="action-icon action-close" title="关闭" @click.stop="close">
|
|
</span>
|
|
</span>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
<div class="home-body">
|
|
<div class="home-body">
|
|
<router-view />
|
|
<router-view />
|
|
@@ -27,7 +31,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-const { ipcRenderer } = window.nodeRequire("electron");
|
|
|
|
|
|
+// const { ipcRenderer } = window.nodeRequire("electron");
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "layout",
|
|
name: "layout",
|
|
@@ -59,21 +63,21 @@ export default {
|
|
window.history.go(-1);
|
|
window.history.go(-1);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- minWin() {
|
|
|
|
- ipcRenderer.send("minimize-window");
|
|
|
|
- },
|
|
|
|
- maxWin() {
|
|
|
|
- ipcRenderer.send("maximize-window");
|
|
|
|
- },
|
|
|
|
- close() {
|
|
|
|
- this.$confirm("确认要退出系统吗?", "提示", {
|
|
|
|
- type: "warning",
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- ipcRenderer.send("close-window");
|
|
|
|
- })
|
|
|
|
- .catch(() => {});
|
|
|
|
- },
|
|
|
|
|
|
+ // minWin() {
|
|
|
|
+ // ipcRenderer.send("minimize-window");
|
|
|
|
+ // },
|
|
|
|
+ // maxWin() {
|
|
|
|
+ // ipcRenderer.send("maximize-window");
|
|
|
|
+ // },
|
|
|
|
+ // close() {
|
|
|
|
+ // this.$confirm("确认要退出系统吗?", "提示", {
|
|
|
|
+ // type: "warning",
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {
|
|
|
|
+ // ipcRenderer.send("close-window");
|
|
|
|
+ // })
|
|
|
|
+ // .catch(() => {});
|
|
|
|
+ // },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|