update rank of service
This commit is contained in:
1 parent
035d8cbc51
commit
8338a9eb74
2 files changed
+3
-1
No files matched your search
@@ -5,6 +5,7 @@ import { IService, IServiceDetailResponse, IServiceListResponse } from './models
|
||||
export interface IServiceQuery {
|
||||
limit: number;
|
||||
offset: number;
|
||||
ordering: string;
|
||||
}
|
||||
|
||||
class ServiceOperator {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user