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 FOLDERPATH = './docs/article'
const PathsIn = [ const PathsIn = [
'./docs/article_child/', // './docs/web/',
'./docs/article_self/', // './docs/article_self/',
'./docs/article_tech/' './docs/web/'
] ]
function pReadFile(filepath) { function pReadFile(filepath) {
@ -36,9 +36,9 @@ Promise.all([
arr => { arr => {
console.log(arr) console.log(arr)
var params = { var params = {
'/article_child/': arr[0], '/web/': arr[0],
'/article_self/': arr[1], // '/article_self/': arr[1],
'/article_tech/': arr[2] // '/article_tech/': arr[2]
} }
writeJson(params) writeJson(params)
}, },