fix(plugin): prepend API prefix for plugin remoteEntry URL

This commit is contained in:
YuF-9468
2026-03-09 11:41:42 +08:00
parent 6f63e0a5d7
commit 9f1692b33d

View File

@@ -779,7 +779,7 @@ class PluginManager(ConfigReloadMixin, metaclass=Singleton):
dist_path = dist_path[1:]
if dist_path.endswith("/"):
dist_path = dist_path[:-1]
return f"/plugin/file/{plugin_id.lower()}/{dist_path}/remoteEntry.js"
return f"{settings.API_V1_STR}/plugin/file/{plugin_id.lower()}/{dist_path}/remoteEntry.js"
def get_plugin_remotes(self, pid: Optional[str] = None) -> List[Dict[str, Any]]:
"""