diff --git a/src/utils/api.js b/src/utils/api.js index 6c0e30f..a112a24 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -3,7 +3,7 @@ import data from './data.json' export function getData (path = '') { if (path === '') { - return data + return Promise.resolve(data) } else { const fileName = '../../content/' + path return readFile(fileName)