This commit is contained in:
xugaoyi 2019-11-30 17:47:04 +08:00
parent 4317ba1d58
commit 45e71c2b81
1 changed files with 6 additions and 6 deletions

View File

@ -3,9 +3,9 @@ const {readdir, readFile, writeFile} = require('fs')
// const FOLDERPATH = './docs/article'
const PathsIn = [
'./docs/article_child/',
'./docs/article_self/',
'./docs/article_tech/'
// './docs/web/',
// './docs/article_self/',
'./docs/web/'
]
function pReadFile(filepath) {
@ -36,9 +36,9 @@ Promise.all([
arr => {
console.log(arr)
var params = {
'/article_child/': arr[0],
'/article_self/': arr[1],
'/article_tech/': arr[2]
'/web/': arr[0],
// '/article_self/': arr[1],
// '/article_tech/': arr[2]
}
writeJson(params)
},