代码调整

This commit is contained in:
dong 2023-06-06 11:16:51 +08:00
parent 7400b2f1f6
commit 2512c6a8ce
2 changed files with 6 additions and 6 deletions

View File

@ -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;
current: number;
size: number;
name: string;
}) {
return api.get(`${DraftUriBase}/page`, { params: query });
return api.get(`${DraftUriBase}/paging`, { params: query });
}
/**

View File

@ -164,7 +164,7 @@ async function onRequest(props: any) {
loading.value = true;
try {
let response = await pageQuery({
pageNum: page,
current: page,
size: rowsPerPage,
name: filter.name,
});
@ -178,7 +178,7 @@ async function onRequest(props: any) {
} catch (error: any) {
$q.notify({
type: 'negative',
message: error,
message: error.message,
});
} finally {
loading.value = false;
@ -234,7 +234,7 @@ async function publishGraphics() {
} catch (error: any) {
$q.notify({
type: 'negative',
message: error,
message: error.message,
});
}
}