fix: #1575
This commit is contained in:
1 parent
cf9de26076
commit
79180930f3
3 files changed
+16
-12
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user