mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:01:26 +00:00
fix: preset plugins
This commit is contained in:
parent
6beae90806
commit
01271598fc
@ -77,14 +77,14 @@ export class PresetNocoBase extends Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get allPlugins() {
|
get allPlugins() {
|
||||||
return this.builtInPlugins
|
return this.getBuiltInPlugins()
|
||||||
.map((name) => {
|
.map((name) => {
|
||||||
const packageName = PluginManager.getPackageName(name);
|
const packageName = PluginManager.getPackageName(name);
|
||||||
const packageJson = PluginManager.getPackageJson(packageName);
|
const packageJson = PluginManager.getPackageJson(packageName);
|
||||||
return { name, packageName, enabled: true, builtIn: true, version: packageJson.version } as any;
|
return { name, packageName, enabled: true, builtIn: true, version: packageJson.version } as any;
|
||||||
})
|
})
|
||||||
.concat(
|
.concat(
|
||||||
this.localPlugins.map((name) => {
|
this.getLocalPlugins().map((name) => {
|
||||||
const packageName = PluginManager.getPackageName(name);
|
const packageName = PluginManager.getPackageName(name);
|
||||||
const packageJson = PluginManager.getPackageJson(packageName);
|
const packageJson = PluginManager.getPackageJson(packageName);
|
||||||
return { name, packageName, version: packageJson.version };
|
return { name, packageName, version: packageJson.version };
|
||||||
|
Loading…
Reference in New Issue
Block a user