mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
⚡️ 窗体初始化后显示 (#117)
* perf: show window after initializing * perf: remove redundant show() in sub windows
This commit is contained in:
@@ -51,6 +51,7 @@ onBeforeMount(async () => {
|
||||
await core.invoke("init_app");
|
||||
urlListener = await getDeepLink();
|
||||
}
|
||||
await win.show();
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
@@ -33,7 +33,6 @@ let jsonList = reactive({});
|
||||
let jsonContent = reactive({});
|
||||
|
||||
onMounted(async () => {
|
||||
await webviewWindow.getCurrent().show();
|
||||
// 检查数据
|
||||
if (!annoId) {
|
||||
loadingEmpty.value = true;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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!";
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user