From 49e1641b58454a8d535c8743cacf52b4ef696eeb Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 13 Sep 2023 14:22:26 +0800 Subject: [PATCH] fix(pm): item.packageName --- packages/core/server/src/plugin-manager/options/resource.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/core/server/src/plugin-manager/options/resource.ts b/packages/core/server/src/plugin-manager/options/resource.ts index 55849ddc1..b41ee5796 100644 --- a/packages/core/server/src/plugin-manager/options/resource.ts +++ b/packages/core/server/src/plugin-manager/options/resource.ts @@ -127,11 +127,9 @@ export default { ctx.body = items .map((item) => { try { - const packageName = PluginManager.getPackageName(item.name); return { ...item.toJSON(), - packageName, - url: getExposeUrl(packageName, PLUGIN_CLIENT_ENTRY_FILE), + url: getExposeUrl(item.packageName, PLUGIN_CLIENT_ENTRY_FILE), }; } catch { return false;