diff --git a/src/_data/test.js b/src/_data/test.js index e0806d64..64a713a5 100644 --- a/src/_data/test.js +++ b/src/_data/test.js @@ -11,7 +11,7 @@ export default async function () { // console.log(window) // return window - fs.readdir('./json', (err, files) => { + fs.readdir('./json/', (err, files) => { files.forEach(file => { console.log(file); });