mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-04 03:16:02 +00:00
chore: add some notes
This commit is contained in:
@@ -38,7 +38,7 @@ export function resultError(message = 'Request failed', { code = -1, result = nu
|
||||
}
|
||||
|
||||
export function pagination<T = any>(pageNo: number, pageSize: number, array: T[]): T[] {
|
||||
let offset = (pageNo - 1) * Number(pageSize);
|
||||
const offset = (pageNo - 1) * Number(pageSize);
|
||||
const ret =
|
||||
offset + Number(pageSize) >= array.length
|
||||
? array.slice(offset, array.length)
|
||||
|
@@ -18,6 +18,7 @@ export default [
|
||||
timeout: 4000,
|
||||
method: 'get',
|
||||
response: ({ query }) => {
|
||||
console.log(query);
|
||||
return resultSuccess(demoList);
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user