chore: 调整bloglist不返回deletedAt字段
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user