♻️ 调整窗口显示逻辑

This commit is contained in:
目棃
2024-12-07 19:13:32 +08:00
parent c7f24d2345
commit d5ec4b1b0e
3 changed files with 37 additions and 41 deletions

View File

@@ -105,7 +105,7 @@ import TGLogger from "../utils/TGLogger.js";
import { createTGWindow } from "../utils/TGWindow.js";
import TGConstant from "../web/constant/TGConstant.js";
const appVersion = await app.getVersion();
const appVersion = ref<string>();
const postId = Number(useRoute().params.post_id);
const showCollection = ref<boolean>(false);
const shareTime = ref<number>(Math.floor(Date.now() / 1000));
@@ -121,6 +121,7 @@ function getGameIcon(gameId: number): string {
}
onMounted(async () => {
appVersion.value = await app.getVersion();
showLoading.start(`正在加载帖子数据...`);
// 检查数据
if (!postId) {