|
|
@@ -38,8 +38,18 @@ export interface PluginParams {
|
|
|
server: string | null;
|
|
|
location: string | null;
|
|
|
}
|
|
|
-export async function queryPluginList(params: object): Promise<PluginList> {
|
|
|
- const res = await instance.post('/api/Plugin/PluginList', params);
|
|
|
+export async function queryPluginList(
|
|
|
+ params: Record<string, any>
|
|
|
+): Promise<PluginList> {
|
|
|
+ const formData = new URLSearchParams();
|
|
|
+ Object.keys(params).forEach(key => {
|
|
|
+ formData.append(key, params[key]);
|
|
|
+ });
|
|
|
+ const res = await instance.post('/api/Plugin/PluginList', formData, {
|
|
|
+ headers: {
|
|
|
+ 'Content-Type': 'application/x-www-form-urlencoded',
|
|
|
+ },
|
|
|
+ });
|
|
|
return res.data;
|
|
|
}
|
|
|
export async function deletePluginDetails(params: object): Promise<DataRes> {
|