fix: 可选字段处理

- 为搜索条目中的可选字段进行判断并处理
This commit is contained in:
2025-12-05 16:25:57 +08:00
parent c9b5b1fad9
commit 36d24a4740
3 changed files with 17 additions and 13 deletions

View File

@ -9,16 +9,16 @@ export interface MeiliProductIndex {
name: string;
/** 产品简介 **/
summary: string;
summary?: string;
/** 产品详情 **/
description: string;
description?: string;
/** 产品类型 **/
type: string;
type?: string;
/** 产品缩略图 **/
cover: string;
cover?: string;
}
/**
@ -32,16 +32,16 @@ export interface MeiliSolutionIndex {
title: string;
/** 解决方案摘要 **/
summary: string;
summary?: string;
/** 解决方案内容 **/
content: string;
content?: string;
/** 解决方案类型 **/
type: string;
type?: string;
/** 解决方案缩略图 **/
cover: string;
cover?: string;
}
/**
@ -55,7 +55,7 @@ export interface MeiliQuestionIndex {
title: string;
/** 问题内容 **/
content: string;
content?: string;
/** 相关产品 **/
products: string[];