diff --git a/src/api/DraftApi.ts b/src/api/DraftApi.ts index 4eea281..af88d88 100644 --- a/src/api/DraftApi.ts +++ b/src/api/DraftApi.ts @@ -1,6 +1,6 @@ import { api } from 'src/boot/axios'; -const DraftUriBase = '/api/draft/layout'; +const DraftUriBase = '/api/drafting'; /** * 分页查询 @@ -8,11 +8,11 @@ const DraftUriBase = '/api/draft/layout'; * @returns */ export function pageQuery(query: { - pageNum: number; + pages: number; size: number; name: string; }) { - return api.get(`${DraftUriBase}/page`, { params: query }); + return api.get(`${DraftUriBase}/paging`, { params: query }); } /** diff --git a/src/pages/DraftManage.vue b/src/pages/DraftManage.vue index 9680784..0d4ff4a 100644 --- a/src/pages/DraftManage.vue +++ b/src/pages/DraftManage.vue @@ -164,7 +164,7 @@ async function onRequest(props: any) { loading.value = true; try { let response = await pageQuery({ - pageNum: page, + pages: page, size: rowsPerPage, name: filter.name, }); diff --git a/tsconfig.json b/tsconfig.json index ee0d9cf..483ae96 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,5 +2,7 @@ "extends": "@quasar/app-vite/tsconfig-preset", "compilerOptions": { "baseUrl": "." - } -} \ No newline at end of file + }, + "include": ["src/**/*"], + "exclude": ["/graphic-pixi/*/**.ts"] +}