2022-12-09 13:41:56 +00:00
|
|
|
const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
|
|
|
|
|
2019-07-31 15:35:23 +00:00
|
|
|
export default class NodeService {
|
|
|
|
getTreeTableNodes() {
|
2022-12-09 13:41:56 +00:00
|
|
|
return fetch(baseUrl + 'demo/data/treetablenodes.json')
|
2022-09-14 14:26:41 +00:00
|
|
|
.then((res) => res.json())
|
|
|
|
.then((d) => d.root);
|
2019-07-31 15:35:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getTreeNodes() {
|
2022-12-09 13:41:56 +00:00
|
|
|
return fetch(baseUrl + 'demo/data/treenodes.json')
|
2022-09-14 14:26:41 +00:00
|
|
|
.then((res) => res.json())
|
|
|
|
.then((d) => d.root);
|
2019-07-31 15:35:23 +00:00
|
|
|
}
|
2021-10-05 07:41:07 +00:00
|
|
|
}
|