update rank of service

This commit is contained in:
AceDataCloud committed 2023-01-29 21:51:33 +08:00
1 parent 035d8cbc51
commit 8338a9eb74
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ import { IService, IServiceDetailResponse, IServiceListResponse } from './models
export interface IServiceQuery {
limit: number;
offset: number;
ordering: string;
}
class ServiceOperator {
+2 -1
View File
@@ -138,7 +138,8 @@ export default defineComponent({
serviceOperator
.getAll({
limit: this.limit,
offset: (this.page - 1) * this.limit
offset: (this.page - 1) * this.limit,
ordering: 'rank'
})
.then(({ data: data }: { data: IServiceListResponse }) => {
this.services = data.items;