feat: 将解决方案页迁移至directus

- 将/solutions与/solutions/[slug]页现在由Directus作为CMS
- 添加solution页的composable API
This commit is contained in:
2025-10-17 16:23:48 +08:00
parent 9abe6431a6
commit 568701a80e
5 changed files with 117 additions and 38 deletions

View File

@ -0,0 +1,20 @@
/**
* 解决方案模型
* 用于解决方案页(/solutions/[slug])渲染的数据结构
*/
export interface SolutionView {
/** 唯一标识符 **/
id: number;
/** 标题 **/
title: string;
/** 摘要 **/
summary: string;
/** 内容 **/
content: string;
/** 创建时间 **/
createAt: string;
}