🎨 一些优化

* 优化公告解析逻辑
* 咨讯页loading显示版块名称
* 移除无用文件
This commit is contained in:
目棃
2024-11-16 19:00:21 +08:00
parent 2f60e128a5
commit 680a54a0f1
23 changed files with 62 additions and 139 deletions

View File

@@ -73,6 +73,7 @@ import ToPostSearch from "../../components/post/to-postSearch.vue";
import Mys from "../../plugins/Mys/index.js";
import TGLogger from "../../utils/TGLogger.js";
import { createPost } from "../../utils/TGWindow.js";
import { getGameName } from "../../web/utils/tools.js";
type SortSelect = {
text: string;
@@ -184,9 +185,9 @@ const search = ref<string>("");
const showSearch = ref<boolean>(false);
onMounted(async () => {
showLoading.start("正在获取帖子数据...");
if (gid && typeof gid === "string") curGid.value = Number(gid);
if (forum && typeof forum === "string") curForum.value = Number(forum);
showLoading.start(`正在获取${getGameName(curGid.value)}帖子数据...`);
const gameLabel = getGameLabel(curGid.value);
const forumLabel = getForumLabel(curGid.value, curForum.value);
await TGLogger.Info(`[Posts][${gameLabel}][onMounted][${forumLabel}] 打开帖子列表`);