9 changed files with 55 additions and 5 deletions
@ -0,0 +1,18 @@ |
|||
'use strict'; |
|||
|
|||
import { basicAction } from '@peace/utils' |
|||
import { ApiTable } from '$utils' |
|||
|
|||
export function addDataSource(params, msg) { |
|||
return (dispatch) => basicAction({ |
|||
type: 'post', |
|||
data: params, |
|||
dispatch, |
|||
actionType: 'ADD_ADAPTER', |
|||
url: ApiTable.addDataSource, |
|||
msg: { |
|||
option: msg || '新增数据源', |
|||
}, |
|||
}); |
|||
} |
|||
|
Loading…
Reference in new issue