mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-29 16:22:50 +00:00
fix: plugin avatar
This commit is contained in:
parent
baff8c520e
commit
345200613f
|
|
@ -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
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue