Skip to content

Commit 0e3ef20

Browse files
committed
优化OpenToolbox
1 parent 5a8fc98 commit 0e3ef20

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

OpenToolbox/src/main/index.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ function subWindow() {
4141

4242

4343
const template = [
44+
{
45+
label: 'File',
46+
submenu: [
47+
]
48+
},
4449
{
4550
label: 'Edit',
4651
submenu: [
@@ -104,7 +109,7 @@ if (process.platform === 'darwin') {
104109
});
105110

106111
// Edit menu
107-
template[1].submenu.push(
112+
template[2].submenu.push(
108113
{type: 'separator'},
109114
{
110115
label: 'Speech',
@@ -116,18 +121,19 @@ if (process.platform === 'darwin') {
116121
);
117122

118123
// Window menu
119-
template[3].submenu = [
124+
template[4].submenu = [
125+
{
126+
label: 'New Window',
127+
click: function () {
128+
subWindow();
129+
}
130+
},
120131
{role: 'close'},
121132
{role: 'minimize'},
122133
{role: 'zoom'},
123134
{type: 'separator'},
124135
{role: 'front'},
125-
{
126-
label: 'Open Sub Window',
127-
click: function () {
128-
subWindow();
129-
}
130-
}
136+
131137
];
132138

133139

OpenToolbox/src/renderer/components/Terminal.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<template>
2-
<div id="xterm" :style="{backgroundImage: 'url(' + background + ')'} ">
3-
</div>
2+
<div id="xterm" :style="{backgroundImage: 'url(' + background + ')'} " >
3+
</div>
44
</template>
55

66
<style scoped>
77
#xterm {
8-
98
margin-left: 8.6px;
109
height: 100%;
1110
width: 100%;

0 commit comments

Comments
 (0)