mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-15 21:03:29 +08:00
🚸 调整位置判断
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -74,10 +74,12 @@ onMounted(async () => {
|
||||
textScaleListener = await event.listen<void>("text_scale_change", resizeWindow);
|
||||
const isShow = await win.isVisible();
|
||||
if (!isShow) {
|
||||
if (needResize.value) await win.center();
|
||||
// TODO: 结合窗口尺寸&放缩以及设计尺寸放置合适位置
|
||||
const position = new LogicalPosition(20, 20);
|
||||
await win.setPosition(position);
|
||||
if (needResize.value !== "false") await win.center();
|
||||
else {
|
||||
// TODO: 结合窗口尺寸&放缩以及设计尺寸放置合适位置
|
||||
const position = new LogicalPosition(20, 20);
|
||||
await win.setPosition(position);
|
||||
}
|
||||
await win.show();
|
||||
}
|
||||
if (showFeedback.value) {
|
||||
|
||||
Reference in New Issue
Block a user