From 6167cb06a911f12539e64f0e677aa67c94cb9f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 5 Oct 2021 17:14:41 +0300 Subject: [PATCH] Update LiveEditorData.js --- src/views/liveeditor/LiveEditorData.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/liveeditor/LiveEditorData.js b/src/views/liveeditor/LiveEditorData.js index e4cd1be4f..fd86b84f1 100644 --- a/src/views/liveeditor/LiveEditorData.js +++ b/src/views/liveeditor/LiveEditorData.js @@ -3,7 +3,7 @@ const services = { export default class CountryService { getCountries() { - return fetch('demo/data/countries.json').then(res => res.json()) + return fetch('data/countries.json').then(res => res.json()) .then(d => d.data); } } @@ -12,22 +12,22 @@ export default class CountryService { export default class CustomerService { getCustomersSmall() { - return fetch('demo/data/customers-small.json').then(res => res.json()) + return fetch('data/customers-small.json').then(res => res.json()) .then(d => d.data); } getCustomersMedium() { - return fetch('demo/data/customers-medium.json').then(res => res.json()) + return fetch('data/customers-medium.json').then(res => res.json()) .then(d => d.data); } getCustomersLarge() { - return fetch('demo/data/customers-large.json').then(res => res.json()) + return fetch('data/customers-large.json').then(res => res.json()) .then(d => d.data); } getCustomersXLarge() { - return fetch('demo/data/customers-xlarge.json').then(res => res.json()) + return fetch('data/customers-xlarge.json').then(res => res.json()) .then(d => d.data); } @@ -41,7 +41,7 @@ export default class CustomerService { export default class EventService { getEvents() { - return fetch('demo/data/events.json').then(res => res.json()) + return fetch('data/events.json').then(res => res.json()) .then(d => d.data); } } @@ -50,12 +50,12 @@ export default class EventService { export default class NodeService { getTreeTableNodes() { - return fetch('demo/data/treetablenodes.json').then(res => res.json()) + return fetch('data/treetablenodes.json').then(res => res.json()) .then(d => d.root); } getTreeNodes() { - return fetch('demo/data/treenodes.json').then(res => res.json()) + return fetch('data/treenodes.json').then(res => res.json()) .then(d => d.root); } } @@ -64,7 +64,7 @@ export default class NodeService { export default class PhotoService { getImages() { - return fetch('demo/data/photos.json').then(res => res.json()) + return fetch('data/photos.json').then(res => res.json()) .then(d => d.data); } } @@ -73,15 +73,15 @@ export default class PhotoService { export default class ProductService { getProductsSmall() { - return fetch('demo/data/products-small.json').then(res => res.json()).then(d => d.data); + return fetch('data/products-small.json').then(res => res.json()).then(d => d.data); } getProducts() { - return fetch('demo/data/products.json').then(res => res.json()).then(d => d.data); + return fetch('data/products.json').then(res => res.json()).then(d => d.data); } getProductsWithOrdersSmall() { - return fetch('demo/data/products-orders-small.json').then(res => res.json()).then(d => d.data); + return fetch('data/products-orders-small.json').then(res => res.json()).then(d => d.data); } }