feat: 校验数据源状态时,同时刷新左侧菜单中数据源的状态

This commit is contained in:
taojinlong
2021-08-23 16:27:05 +08:00
parent 378a034f85
commit 4eaaf2273e
4 changed files with 56 additions and 9 deletions

View File

@@ -50,6 +50,14 @@ export function validateDs(data) {
})
}
export function validateDsById(datasourceId) {
return request({
url: 'datasource/validate/' + datasourceId,
method: 'get',
loading: true
})
}
export function getSchema(data) {
return request({
url: 'datasource/getSchema/',