ref: 超级面板功能优化

This commit is contained in:
muwoo 2021-08-17 17:38:44 +08:00
parent ea78658bfd
commit 39422860d7
4 changed files with 8 additions and 2 deletions

View File

@ -215,6 +215,10 @@ class Listener {
}); });
const pos = this.getPos(robot.getMousePos()); const pos = this.getPos(robot.getMousePos());
win.setPosition(parseInt(pos.x), parseInt(pos.y)); win.setPosition(parseInt(pos.x), parseInt(pos.y));
win.setAlwaysOnTop(true);
win.setVisibleOnAllWorkspaces(true, {visibleOnFullScreen: true});
win.focus();
win.setVisibleOnAllWorkspaces(false, {visibleOnFullScreen: true});
win.show(); win.show();
}); });
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -40,8 +40,8 @@
background: #314659; background: #314659;
} }
.top .img img { .top .img img {
width: 22px; width: 26px;
height: 22px; height: 26px;
} }
.top .text { .top .text {
color: #999; color: #999;

View File

@ -181,6 +181,8 @@ new Vue({
...JSON.parse(res), ...JSON.parse(res),
src: msg, src: msg,
}); });
}).catch(() => {
this.$set(this.selectData, 'translate', null);
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
}) })