This is an automated email from the ASF dual-hosted git repository. hefengen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push: new 276ca3c3 Fix pathvariable (#484) 276ca3c3 is described below commit 276ca3c3d61eac685859d383b2b8c9cb15b8d059 Author: VampireAchao <ac...@apache.org> AuthorDate: Sat Sep 21 23:23:32 2024 +0800 Fix pathvariable (#484) * [type:fix] fix path variable problem * [type:fix] fix path variable problem --- src/services/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/api.js b/src/services/api.js index 16ed2d1c..4f8f8b21 100644 --- a/src/services/api.js +++ b/src/services/api.js @@ -560,7 +560,7 @@ export async function asyncConfigImport(params) { // 同步单个插件 export async function asyncOnePlugin(params) { return request( - `${baseUrl}/namespacePlugin/syncPluginData/id=${params.id}&namespaceId=${params.namespaceId}`, + `${baseUrl}/namespacePlugin/syncPluginData?id=${params.id}&namespaceId=${params.namespaceId}`, { method: `PUT`, }, @@ -1217,7 +1217,7 @@ export async function updateNamespacePlugin(params) { formData.append("name", params.name); formData.append("namespaceId", params.namespaceId); return request( - `${baseUrl}/namespacePlugin/pluginId=${params.pluginId}&namespaceId=${params.namespaceId}`, + `${baseUrl}/namespacePlugin?pluginId=${params.pluginId}&namespaceId=${params.namespaceId}`, { method: `PUT`, body: formData,