13 lines
321 B
JavaScript
13 lines
321 B
JavaScript
|
export default class NodeService {
|
||
|
|
||
|
getTreeTableNodes() {
|
||
|
return fetch('demo/data/treetablenodes.json').then(res => res.json())
|
||
|
.then(d => d.root);
|
||
|
}
|
||
|
|
||
|
getTreeNodes() {
|
||
|
return fetch('demo/data/treenodes.json').then(res => res.json())
|
||
|
.then(d => d.root);
|
||
|
}
|
||
|
}
|