🐛 修复咨询页渲染异常

This commit is contained in:
目棃
2024-07-06 01:05:41 +08:00
parent 012efb03ea
commit efcf16fe93
3 changed files with 22 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
/**
* @file plugins/Mys/types/news.d.ts
* @description Mys 插件咨讯类型定义文件
* @since Beta v0.4.5
* @since Beta v0.5.0
*/
/**
@@ -55,14 +55,14 @@ declare namespace TGApp.Plugins.Mys.News {
/**
* @description 用于渲染的咨讯卡片
* @since Beta v0.4.0
* @since Beta v0.5.0
* @interface RenderCard
* @property {string} title 标题
* @property {string} cover 封面图片 URL
* @property {number} postId 帖子 ID
* @property {string} subtitle 副标题
* @property {TGApp.Plugins.Mys.User.Post} user 发帖用户
* @property forum 版块
* @property {TGApp.Plugins.Mys.User.Post|null} user 发帖用户
* @property forum 版块,可能为 null
* @property {string} forum.name 版块名称
* @property {string} forum.icon 版块图标
* @property {RenderStatus} status 活动状态,仅活动咨讯有
@@ -79,11 +79,11 @@ declare namespace TGApp.Plugins.Mys.News {
cover: string;
postId: number;
subtitle: string;
user: TGApp.Plugins.Mys.User.Post;
user: TGApp.Plugins.Mys.User.Post | null;
forum: {
name: string;
icon: string;
};
} | null;
data: {
mark: number;
forward: number;

View File

@@ -1,12 +1,12 @@
/**
* @file plugins/Mys/types/post.d.ts
* @description Mys 插件帖子类型定义文件
* @since Beta v0.4.5
* @since Beta v0.5.0
*/
/**
* @description Mys 插件帖子类型
* @since Beta v0.4.5
* @since Beta v0.5.0
* @namespace TGApp.Plugins.Mys.Post
* @memberof TGApp.Plugins.Mys
*/
@@ -27,12 +27,12 @@ declare namespace TGApp.Plugins.Mys.Post {
/**
* @description 帖子数据
* @since Beta v0.4.5
* @since Beta v0.5.0
* @interface FullData
* @property {Post} post 帖子信息
* @property {Forum} forum 所属版块
* @property {Topic[]} topics 所属话题
* @property {TGApp.Plugins.Mys.User.Post} user 发帖人
* @property {TGApp.Plugins.Mys.User.Post|null} user 发帖人
* @property {TGApp.Plugins.Mys.User.SelfOperation} self_operation 当前用户操作
* @property {Stat} stat 帖子统计
* @property {HelpSys} help_sys 帮助系统,可能为 null
@@ -54,9 +54,9 @@ declare namespace TGApp.Plugins.Mys.Post {
*/
interface FullData {
post: Post;
forum: Forum;
forum: Forum | null;
topics: Topic[];
user: TGApp.Plugins.Mys.User.Post;
user: TGApp.Plugins.Mys.User.Post | null;
self_operation: TGApp.Plugins.Mys.User.SelfOperation;
stat: Stat;
help_sys: HelpSys | null;