From 696ca40f7f0fe335807d94ce889f2f4451240b91 Mon Sep 17 00:00:00 2001 From: LuoYunXi Date: Sun, 21 Dec 2025 11:26:25 +0800 Subject: [PATCH] Fix typo (#187) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据定义「咨讯」应为「资讯」。 News 是「资讯」 而「咨讯」在网络上检索到的定义为 Valuable Information,且现代汉语词典(第 7 版)中未收录该词 --- docs/项目资源说明.md | 2 +- src/components/app/t-sidebar.vue | 4 ++-- src/pages/common/PageAnno.vue | 4 ++-- src/pages/common/PostNews.vue | 2 +- src/request/painterReq.ts | 2 +- src/router/modules/main.ts | 2 +- src/store/modules/app.ts | 4 ++-- src/types/BBS/Post.d.ts | 10 +++++----- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/项目资源说明.md b/docs/项目资源说明.md index 36cf4c00..82d06a83 100644 --- a/docs/项目资源说明.md +++ b/docs/项目资源说明.md @@ -22,7 +22,7 @@ Update: 2025-11-19 - 顶部收缩按钮:`mdi:chevron-right` `mdi:chevron-left` - 首页:米游社网页活动图标 - 公告:个人绘制 SVG -- 咨讯:[米游社](https://www.miyoushe.com) +- 资讯:[米游社](https://www.miyoushe.com) - 成就:个人绘制 SVG - 原神战绩:Hoyolab - 我的角色:Hoyolab diff --git a/src/components/app/t-sidebar.vue b/src/components/app/t-sidebar.vue index cf744851..e5f4bdc3 100644 --- a/src/components/app/t-sidebar.vue +++ b/src/components/app/t-sidebar.vue @@ -19,8 +19,8 @@ annoIcon - - + + diff --git a/src/pages/common/PageAnno.vue b/src/pages/common/PageAnno.vue index b4c58cc4..b711e7b9 100644 --- a/src/pages/common/PageAnno.vue +++ b/src/pages/common/PageAnno.vue @@ -43,7 +43,7 @@ variant="elevated" @click="switchNews" > - 切换米游社咨讯 + 切换米游社资讯 { - await TGLogger.Info("[Announcements][switchNews] 切换米游社咨讯"); + await TGLogger.Info("[Announcements][switchNews] 切换米游社资讯"); await router.push("/news/2"); } diff --git a/src/pages/common/PostNews.vue b/src/pages/common/PostNews.vue index 00a76aa4..40b855ef 100644 --- a/src/pages/common/PostNews.vue +++ b/src/pages/common/PostNews.vue @@ -109,7 +109,7 @@ const postData = reactive({ const rawData = reactive({ notice: shallowRef({ isLast: false, name: "公告", lastId: 0 }), activity: shallowRef({ isLast: false, name: "活动", lastId: 0 }), - news: shallowRef({ isLast: false, name: "咨讯", lastId: 0 }), + news: shallowRef({ isLast: false, name: "资讯", lastId: 0 }), }); const tab = computed({ get: () => ((recentNewsType.value satisfies NewsType) ? recentNewsType.value : "notice"), diff --git a/src/request/painterReq.ts b/src/request/painterReq.ts index cd4f44ba..7717674a 100644 --- a/src/request/painterReq.ts +++ b/src/request/painterReq.ts @@ -13,7 +13,7 @@ const bapBu: Readonly = "https://bbs-api.miyoushe.com/painter/wapi/"; * @description 获取 News 列表 * @since Beta v0.7.1 * @param {string} gid GID - * @param {string} newsType 咨讯类型: 1 为公告,2 为活动,3 为咨讯 + * @param {string} newsType 资讯类型: 1 为公告,2 为活动,3 为资讯 * @param {number} pageSize 返回数量 * @param {number} lastId 上一次请求的最后一条数据的 id * @return {Promise} diff --git a/src/router/modules/main.ts b/src/router/modules/main.ts index 90c78533..3b1fe1d2 100644 --- a/src/router/modules/main.ts +++ b/src/router/modules/main.ts @@ -17,7 +17,7 @@ const mainRoutes = ([ }, { path: "/news/:gid/:type?", - name: "咨讯", + name: "资讯", component: async () => await import("@/pages/common/PostNews.vue"), }, { diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index 5bca3097..e496a479 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -16,7 +16,7 @@ const userDataDir: Readonly = `${await path.appLocalDataDir()}${path.sep const dbDataPath: Readonly = `${await path.appConfigDir()}${path.sep()}TeyvatGuide.db`; /* 用于存放日志的路径 */ const logDataDir: Readonly = await path.appLogDir(); -/* 咨讯类型 TODO:改成枚举类 */ +/* 资讯类型 TODO:改成枚举类 */ export type NewsType = "notice" | "activity" | "news"; const useAppStore = defineStore( @@ -46,7 +46,7 @@ const useAppStore = defineStore( const server = ref(GameServerEnum.CN_QD01); /* 语言 */ const lang = ref(AnnoLangEnum.CHS); - /* 最近的咨讯类型 */ + /* 最近的资讯类型 */ const recentNewsType = ref("notice"); /* 是否开启分辨率回正 */ const needResize = ref("true"); diff --git a/src/types/BBS/Post.d.ts b/src/types/BBS/Post.d.ts index aec32c51..3645b392 100644 --- a/src/types/BBS/Post.d.ts +++ b/src/types/BBS/Post.d.ts @@ -44,17 +44,17 @@ declare namespace TGApp.BBS.Post { }; /** - * 咨讯返回响应 + * 资讯返回响应 * @since Beta v0.7.2 */ type NewsResp = TGApp.BBS.Response.BaseWithData; /** - * 咨讯数据 + * 资讯数据 * @since Beta v0.7.2 */ type NewsRes = { - /** 咨讯列表 */ + /** 资讯列表 */ list: Array; /** 列表内最后一个 ID,用于索引 */ last_id: string; @@ -147,7 +147,7 @@ declare namespace TGApp.BBS.Post { forum_rank_info: unknown | null; /** 链接卡片列表,可能为空 */ link_card_list: Array; - /** 咨讯元数据,可能为 null */ + /** 资讯元数据,可能为 null */ news_meta?: NewsMeta | null; /** 推荐理由,可能为 null */ recommend_reason: RecommendReason | null; @@ -643,7 +643,7 @@ declare namespace TGApp.BBS.Post { }; /** - * 咨讯元数据,只有活动咨讯才有 + * 资讯元数据,只有活动资讯才有 * @since Beta v0.7.1 */ type NewsMeta = {