Remove axios

This commit is contained in:
mertsincan 2021-10-05 10:41:07 +03:00
parent 34d6fc9e37
commit 642d82d132
15 changed files with 104 additions and 128 deletions

View file

@ -1,15 +1,12 @@
import axios from 'axios';
export default class NodeService {
getTreeTableNodes() {
return axios.get('demo/data/treetablenodes.json')
.then(res => res.data.root);
return fetch('demo/data/treetablenodes.json').then(res => res.json())
.then(d => d.root);
}
getTreeNodes() {
return axios.get('demo/data/treenodes.json')
.then(res => res.data.root);
return fetch('demo/data/treenodes.json').then(res => res.json())
.then(d => d.root);
}
}
}