fix Page article

This commit is contained in:
Timi
2026-01-15 13:32:52 +08:00
parent f85c0c4cb7
commit 8edbc99be2
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import { Article, axios, Page, PageResult } from "timi-web";
import { ArticleRanking } from "@/types/Article.ts";
async function page(page: Page): Promise<PageResult<Article<any>>> {
async function page(page: Page<Article<any>>): Promise<PageResult<Article<any>>> {
return axios.post("/article/list", page);
}

View File

@ -81,7 +81,7 @@ const route = useRoute();
// 页码
const currentPage = computed(() => page.index + 1);
// 分页参数
const page = reactive<Page>({
const page = reactive<Page<Article<any>>>({
index: 0,
size: 16
});