fix: plugin avatar

This commit is contained in:
archer 2025-06-30 21:39:15 +08:00
parent baff8c520e
commit 345200613f
No known key found for this signature in database
GPG Key ID: 4446499B846D4A9E

View File

@ -16,8 +16,8 @@ export async function getSystemToolList() {
id: `${PluginSourceEnum.systemTool}-${item.id}`,
parentId: item.parentId ? `${PluginSourceEnum.systemTool}-${item.parentId}` : undefined,
avatar:
item.avatar && item.avatar.startsWith('/imgs/tools')
? `/api/system/pluginImgs/${item.avatar.replace('/imgs/tools', '')}`
item.avatar && item.avatar.startsWith('/imgs/tools/')
? `/api/system/pluginImgs/${item.avatar.replace('/imgs/tools/', '')}`
: item.avatar
};
});