primevue-mirror/service/NodeService.js

13 lines
323 B
JavaScript
Executable File

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);
}
}