根据定义「咨讯」应为「资讯」。

News 是「资讯」
而「咨讯」在网络上检索到的定义为 Valuable Information,且现代汉语词典(第 7 版)中未收录该词
This commit is contained in:
LuoYunXi
2025-12-21 11:26:25 +08:00
committed by GitHub
parent 5b896e9e56
commit 696ca40f7f
8 changed files with 15 additions and 15 deletions

View File

@@ -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

View File

@@ -19,8 +19,8 @@
<img alt="annoIcon" class="side-icon" src="@/assets/icons/board.svg" />
</template>
</v-list-item>
<v-list-item :href="`/news/2/${recentNewsType}`" :link="true" :title.attr="'讯'">
<template #title></template>
<v-list-item :href="`/news/2/${recentNewsType}`" :link="true" :title.attr="'讯'">
<template #title></template>
<template #prepend>
<img alt="mihoyo" class="side-icon" src="/platforms/mhy/mys.webp" />
</template>

View File

@@ -43,7 +43,7 @@
variant="elevated"
@click="switchNews"
>
切换米游社
切换米游社
</v-btn>
<v-btn
v-if="isLogin"
@@ -227,7 +227,7 @@ function getAnnoCard(
}
async function switchNews(): Promise<void> {
await TGLogger.Info("[Announcements][switchNews] 切换米游社讯");
await TGLogger.Info("[Announcements][switchNews] 切换米游社讯");
await router.push("/news/2");
}
</script>

View File

@@ -109,7 +109,7 @@ const postData = reactive<PostData>({
const rawData = reactive<RawData>({
notice: shallowRef<RawItem>({ isLast: false, name: "公告", lastId: 0 }),
activity: shallowRef<RawItem>({ isLast: false, name: "活动", lastId: 0 }),
news: shallowRef<RawItem>({ isLast: false, name: "讯", lastId: 0 }),
news: shallowRef<RawItem>({ isLast: false, name: "讯", lastId: 0 }),
});
const tab = computed<NewsType>({
get: () => ((recentNewsType.value satisfies NewsType) ? recentNewsType.value : "notice"),

View File

@@ -13,7 +13,7 @@ const bapBu: Readonly<string> = "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<TGApp.BBS.Post.NewsRes>}

View File

@@ -17,7 +17,7 @@ const mainRoutes = (<const>[
},
{
path: "/news/:gid/:type?",
name: "讯",
name: "讯",
component: async () => await import("@/pages/common/PostNews.vue"),
},
{

View File

@@ -16,7 +16,7 @@ const userDataDir: Readonly<string> = `${await path.appLocalDataDir()}${path.sep
const dbDataPath: Readonly<string> = `${await path.appConfigDir()}${path.sep()}TeyvatGuide.db`;
/* 用于存放日志的路径 */
const logDataDir: Readonly<string> = await path.appLogDir();
/* 讯类型 TODO:改成枚举类 */
/* 讯类型 TODO:改成枚举类 */
export type NewsType = "notice" | "activity" | "news";
const useAppStore = defineStore(
@@ -46,7 +46,7 @@ const useAppStore = defineStore(
const server = ref<TGApp.Game.Base.ServerTypeEnum>(GameServerEnum.CN_QD01);
/* 语言 */
const lang = ref<TGApp.BBS.Announcement.AnnoLangEnum>(AnnoLangEnum.CHS);
/* 最近的讯类型 */
/* 最近的讯类型 */
const recentNewsType = ref<NewsType>("notice");
/* 是否开启分辨率回正 */
const needResize = ref<string>("true");

View File

@@ -44,17 +44,17 @@ declare namespace TGApp.BBS.Post {
};
/**
* 讯返回响应
* 讯返回响应
* @since Beta v0.7.2
*/
type NewsResp = TGApp.BBS.Response.BaseWithData<NewsRes>;
/**
* 讯数据
* 讯数据
* @since Beta v0.7.2
*/
type NewsRes = {
/** 讯列表 */
/** 讯列表 */
list: Array<FullData>;
/** 列表内最后一个 ID用于索引 */
last_id: string;
@@ -147,7 +147,7 @@ declare namespace TGApp.BBS.Post {
forum_rank_info: unknown | null;
/** 链接卡片列表,可能为空 */
link_card_list: Array<LinkCard>;
/** 讯元数据,可能为 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 = {