Frontend

未分类

fetch(`${location.protocol}//${location.hostname}/v2/data-pipelines/2`, {
method: 'GET',
headers: {
authorization: localStorage.getItem('token'),
}
}).then(function(response) {
return response.json()
}).then(function(myJson) {
console.log(myJson.data.dataSource.dataSourceId)
})