fix(pm): item.packageName

This commit is contained in:
chenos 2023-09-13 14:22:26 +08:00
parent 22bf23b59e
commit 49e1641b58

View File

@ -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;