This commit is contained in:
parent
3cf5902218
commit
b7d409e666
|
|
@ -95,6 +95,7 @@ const BlogArticleWrapper = async ({ params }: { params: { slug: string, locale:
|
||||||
<DetailPageHeader
|
<DetailPageHeader
|
||||||
data={{
|
data={{
|
||||||
id: frontmatter.id,
|
id: frontmatter.id,
|
||||||
|
org_id: frontmatter.org_id,
|
||||||
icon: frontmatter.logo_url,
|
icon: frontmatter.logo_url,
|
||||||
name: frontmatter.p_name,
|
name: frontmatter.p_name,
|
||||||
model_parameter: frontmatter.model_parameter,
|
model_parameter: frontmatter.model_parameter,
|
||||||
|
|
|
||||||
|
|
@ -618,7 +618,7 @@ export function DetailPageHeader({ data }: { data: any }) {
|
||||||
const callback_url = data?.extra_data?.callback_url;
|
const callback_url = data?.extra_data?.callback_url;
|
||||||
const digest = data?.extra_data?.digest;
|
const digest = data?.extra_data?.digest;
|
||||||
const size = data?.extra_data?.size;
|
const size = data?.extra_data?.size;
|
||||||
const id = data?.id;
|
const id = data?.org_id;
|
||||||
|
|
||||||
if (!download_url || !size || !id) {
|
if (!download_url || !size || !id) {
|
||||||
message.warning("缺少必要的下载参数");
|
message.warning("缺少必要的下载参数");
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@ type Frontmatter = {
|
||||||
|
|
||||||
type AIFrontmatter = {
|
type AIFrontmatter = {
|
||||||
id:string;
|
id:string;
|
||||||
|
org_id:string;
|
||||||
p_name:string;
|
p_name:string;
|
||||||
title: string;
|
title: string;
|
||||||
date: string;
|
date: string;
|
||||||
|
|
@ -286,6 +287,7 @@ export const getPostContent = async (language: string, slug: string): Promise<AI
|
||||||
const serialized = await mdxSerialized({ rawMdx });
|
const serialized = await mdxSerialized({ rawMdx });
|
||||||
const frontmatter = serialized.frontmatter as AIFrontmatter;
|
const frontmatter = serialized.frontmatter as AIFrontmatter;
|
||||||
frontmatter.id = String(data.id)
|
frontmatter.id = String(data.id)
|
||||||
|
frontmatter.org_id = String(data.org_id)
|
||||||
frontmatter.p_name = data.p_name
|
frontmatter.p_name = data.p_name
|
||||||
frontmatter.title = data.main_title
|
frontmatter.title = data.main_title
|
||||||
frontmatter.description = data.sub_title || data.main_title
|
frontmatter.description = data.sub_title || data.main_title
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue