uniapp【修复】: 服务商品类型问题

This commit is contained in:
15093570141
2024-10-25 09:51:07 +08:00
parent 36d9565b00
commit e18b149e8a
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export const queryPromotionList = (data : any) : Promise<Response<Array<any>>> =
}
/** 获取服务商品列表 */
export const queryServicelist = (data : any) : Promise<Response<Array<ServiceGoodsType>>> => {
export const queryServicelist = (data : any) : Promise<Response<{count:number,list:Array<ServiceGoodsType>}>> => {
return post('Api/Service/GetPageList', {
data,
});

View File

@@ -115,7 +115,7 @@
/** 获取服务商品列表 */
async function getServicelist() {
const servicelist : Response<Array<ServiceGoodsType>> = await queryServicelist({
const servicelist : Response<{ count : number, list : Array<ServiceGoodsType> }> = await queryServicelist({
page: state.page,
limit: state.limit
})