️ 窗体初始化后显示 (#117)

* perf: show window after initializing

* perf: remove redundant show() in sub windows
This commit is contained in:
Mccree Lee
2024-07-14 08:36:09 +08:00
committed by GitHub
parent cf66a7e128
commit 59e4012ced
6 changed files with 3 additions and 5 deletions

View File

@@ -51,6 +51,7 @@ onBeforeMount(async () => {
await core.invoke("init_app");
urlListener = await getDeepLink();
}
await win.show();
});
onMounted(() => {

View File

@@ -33,7 +33,6 @@ let jsonList = reactive({});
let jsonContent = reactive({});
onMounted(async () => {
await webviewWindow.getCurrent().show();
// 检查数据
if (!annoId) {
loadingEmpty.value = true;

View File

@@ -59,7 +59,6 @@ const annoHtml = ref<string>();
const annoBanner = ref<string>();
onMounted(async () => {
await webviewWindow.getCurrent().show();
appVersion.value = await app.getVersion();
// 检查数据
if (!annoId || !region) {

View File

@@ -30,7 +30,6 @@ let parseData = reactive<TGApp.Plugins.Mys.SctPost.Base[]>([]);
const isEmpty = ref<boolean>(false);
onMounted(async () => {
await webviewWindow.getCurrent().show();
if (!postId) {
loadingEmpty.value = true;
loadingTitle.value = "错误的 POST ID";

View File

@@ -123,7 +123,6 @@ const shareTimeTimer = ref<any>();
const showCollection = ref<boolean>(false);
onMounted(async () => {
await webviewWindow.getCurrent().show();
appVersion.value = await app.getVersion();
// 检查数据
if (!postId) {