fix(pm): item.packageName
This commit is contained in:
parent
22bf23b59e
commit
49e1641b58
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user