Skip to content

Commit 834901d

Browse files
committed
Merge branch 'refs/heads/master' into feature/adapt_namespce_export
# Conflicts: # src/components/GlobalHeader/index.js
2 parents cadebcd + 6f759ed commit 834901d

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/models/global.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
queryPlatform,
2222
getAllPlugins,
2323
getNamespaceList,
24-
asyncOnePlugin,
24+
asyncByPluginAndNamespace,
2525
getUserPermissionByToken,
2626
} from "../services/api";
2727
import { getIntlContent } from "../utils/IntlUtils";
@@ -83,7 +83,7 @@ export default {
8383
},
8484
*asyncPlugin(params, { call }) {
8585
const { payload } = params;
86-
const json = yield call(asyncOnePlugin, payload);
86+
const json = yield call(asyncByPluginAndNamespace, payload);
8787
if (json.code === 200) {
8888
message.success(getIntlContent("SHENYU.COMMON.RESPONSE.SYNC.SUCCESS"));
8989
} else {

src/services/api.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,13 +567,23 @@ export async function asyncConfigImport(params) {
567567
});
568568
}
569569

570-
// 同步单个插件
570+
// sync on plugin
571571
export async function asyncOnePlugin(params) {
572572
return request(`${baseUrl}/namespacePlugin/syncPluginData?id=${params.id}`, {
573573
method: `PUT`,
574574
});
575575
}
576576

577+
// sync by plugin and namespace
578+
export async function asyncByPluginAndNamespace(params) {
579+
return request(
580+
`${baseUrl}/namespacePlugin/syncPluginData?id=${params.id}&namespaceId=${params.namespaceId}`,
581+
{
582+
method: `PUT`,
583+
},
584+
);
585+
}
586+
577587
// get plugin dropdown list
578588
export async function getPluginDropDownList() {
579589
return request(`${baseUrl}/plugin/all`, {

0 commit comments

Comments
 (0)