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 ctx.body = items
.map((item) => { .map((item) => {
try { try {
const packageName = PluginManager.getPackageName(item.name);
return { return {
...item.toJSON(), ...item.toJSON(),
packageName, url: getExposeUrl(item.packageName, PLUGIN_CLIENT_ENTRY_FILE),
url: getExposeUrl(packageName, PLUGIN_CLIENT_ENTRY_FILE),
}; };
} catch { } catch {
return false; return false;