chore: 调整bloglist不返回deletedAt字段

This commit is contained in:
2025-12-27 13:53:15 +08:00
parent 0b9963bb29
commit c75a67c0d9
2 changed files with 2 additions and 3 deletions

View File

@@ -35,11 +35,10 @@ export class BlogService {
return i; return i;
} }
const { createdAt, updatedAt, deletedAt, id, title, viewCount, description, slug } = i; const { createdAt, updatedAt, id, title, viewCount, description, slug } = i;
return { return {
createdAt, createdAt,
updatedAt, updatedAt,
deletedAt,
id, id,
title, title,
slug, slug,

View File

@@ -3,7 +3,7 @@ import { serverFetch } from "../server";
export async function list() { export async function list() {
return serverFetch<Pick<Blog, return serverFetch<Pick<Blog,
'id' | 'title' | 'slug' | 'description' | 'viewCount' | 'createdAt' | 'updatedAt' | 'deletedAt' 'id' | 'title' | 'slug' | 'description' | 'viewCount' | 'createdAt' | 'updatedAt'
>[]>('/api/blog') >[]>('/api/blog')
} }