This commit is contained in:
手瓜一十雪
2026-02-01 10:33:58 +08:00
parent cf9de26076
commit 79180930f3
3 changed files with 16 additions and 12 deletions

View File

@@ -140,9 +140,11 @@ export default class PluginManager {
/**
* 获取插件商店列表
* @param forceRefresh 是否强制刷新(跳过服务端缓存)
*/
public static async getPluginStoreList (): Promise<PluginStoreList> {
const { data } = await serverRequest.get<ServerResponse<PluginStoreList>>('/Plugin/Store/List');
public static async getPluginStoreList (forceRefresh: boolean = false): Promise<PluginStoreList> {
const params = forceRefresh ? { forceRefresh: 'true' } : {};
const { data } = await serverRequest.get<ServerResponse<PluginStoreList>>('/Plugin/Store/List', { params });
return data.data;
}