Feat: 新增默认进行名字排序

This commit is contained in:
Suwings 2022-07-16 14:16:49 +08:00
parent e06d1b2db4
commit 53bef68b40
2 changed files with 8 additions and 1 deletions

View File

@ -81,6 +81,11 @@ routerApp.on("instance/select", (ctx, data) => {
info: instance.info
});
});
overview.sort((a, b) => {
return a.config.nickname >= b.config.nickname ? 1 : -1;
});
protocol.response(ctx, {
page: pageResult.page,
pageSize: pageResult.pageSize,

View File

@ -18,11 +18,13 @@
AGPL
https://mcsmanager.com/ 阅读用户协议,申请闭源开发授权等。
*/
import InstanceConfig from "../entity/instance/Instance_config";
export interface IInstanceDetail {
instanceUuid: string;
started: number;
status: number;
config: any;
config: InstanceConfig;
info?: any;
}