File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121 queryPlatform ,
2222 getAllPlugins ,
2323 getNamespaceList ,
24- asyncOnePlugin ,
24+ asyncByPluginAndNamespace ,
2525 getUserPermissionByToken ,
2626} from "../services/api" ;
2727import { 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 {
Original file line number Diff line number Diff line change @@ -567,13 +567,23 @@ export async function asyncConfigImport(params) {
567567 } ) ;
568568}
569569
570- // 同步单个插件
570+ // sync on plugin
571571export 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
578588export async function getPluginDropDownList ( ) {
579589 return request ( `${ baseUrl } /plugin/all` , {
You can’t perform that action at this time.
0 commit comments