fix: order-list
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 45s

This commit is contained in:
sexygoat
2026-04-15 16:22:06 +08:00
parent 8bf89dbe57
commit dc3a37f60f
3 changed files with 63 additions and 14 deletions

View File

@@ -3,10 +3,14 @@ import { APP_TYPE } from '@/utils/env.js';
export const orderApi = {
getList(identifier, page, page_size, payment_status) {
const data = { identifier, page, page_size };
if (payment_status !== undefined && payment_status !== null) {
data.payment_status = payment_status;
}
return request({
url: '/api/c/v1/orders',
method: 'GET',
data: { identifier, page, page_size, payment_status }
data
});
},