feat: 解决方案列表页标签排序
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m1s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m1s
- 为SolutionType添加Sort字段用于排序 - 解决方案列表按照sort升序排序
This commit is contained in:
@ -13,6 +13,7 @@ describe('toSolutionListView', () => {
|
||||
type: {
|
||||
id: 1,
|
||||
translations: [{ id: 1, name: 'Type Name' }],
|
||||
sort: 1,
|
||||
},
|
||||
};
|
||||
|
||||
@ -20,7 +21,11 @@ describe('toSolutionListView', () => {
|
||||
id: 1,
|
||||
title: 'Solution Title',
|
||||
summary: 'Solution Summary',
|
||||
solution_type: 'Type Name',
|
||||
solution_type: {
|
||||
id: 1,
|
||||
name: 'Type Name',
|
||||
sort: 1,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@ -31,6 +36,7 @@ describe('toSolutionListView', () => {
|
||||
type: {
|
||||
id: 1,
|
||||
translations: [],
|
||||
sort: null,
|
||||
},
|
||||
};
|
||||
|
||||
@ -38,7 +44,11 @@ describe('toSolutionListView', () => {
|
||||
id: 1,
|
||||
title: '',
|
||||
summary: '',
|
||||
solution_type: '',
|
||||
solution_type: {
|
||||
id: 1,
|
||||
name: '',
|
||||
sort: 999,
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user