Skip to content

Commit

Permalink
refactor: remove axios response delay
Browse files Browse the repository at this point in the history
zyronon committed Apr 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent bdb5651 commit 982fdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mock/index.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { useBaseStore } from '@/store/pinia'
import { axiosInstance } from '@/utils/request'
import MockAdapter from 'axios-mock-adapter'

const mock = new MockAdapter(axiosInstance, { delayResponse: 300 })
const mock = new MockAdapter(axiosInstance)

function getPage2(params: any): { limit: number; offset: number; pageNo: number } {
const offset = params.pageNo * params.pageSize

0 comments on commit 982fdc8

Please sign in to comment.