mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
Fix typo (#187)
根据定义「咨讯」应为「资讯」。 News 是「资讯」 而「咨讯」在网络上检索到的定义为 Valuable Information,且现代汉语词典(第 7 版)中未收录该词
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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>}
|
||||
|
||||
@@ -17,7 +17,7 @@ const mainRoutes = (<const>[
|
||||
},
|
||||
{
|
||||
path: "/news/:gid/:type?",
|
||||
name: "咨讯",
|
||||
name: "资讯",
|
||||
component: async () => await import("@/pages/common/PostNews.vue"),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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");
|
||||
|
||||
10
src/types/BBS/Post.d.ts
vendored
10
src/types/BBS/Post.d.ts
vendored
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user