mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Remove axios
This commit is contained in:
parent
34d6fc9e37
commit
642d82d132
15 changed files with 104 additions and 128 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue