fix Page article
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user