mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: 移除 autowire
This commit is contained in:
@@ -65,7 +65,7 @@ export class Registry<T = any> {
|
||||
}
|
||||
|
||||
getDefineList() {
|
||||
const list = [];
|
||||
let list = [];
|
||||
for (const key in this.storage) {
|
||||
const define = this.getDefine(key);
|
||||
if (define) {
|
||||
@@ -78,6 +78,10 @@ export class Registry<T = any> {
|
||||
list.push({ ...define, key });
|
||||
}
|
||||
}
|
||||
|
||||
list = list.sort((a, b) => {
|
||||
return (a.order ?? 10) - (b?.order ?? 10);
|
||||
});
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user