diff --git a/utils/gen.ts b/utils/gen.ts index ca59bff..72e5553 100755 --- a/utils/gen.ts +++ b/utils/gen.ts @@ -160,6 +160,7 @@ new Promise((resolve) => { allRoutes(path.resolve(path_front, 'routes'), `index.ts`, {groups: current, categories: allCategories}) allCategories.forEach(c=>{ if (!deleteFiles) mkdir(path.resolve(path_front, 'routes', c)); + if (!deleteFiles) mkdir(path.resolve(path_front, 'pages', c)); const groups = current.map(g=>{return{ ...g, objects: g.objects.filter(o=>o.category==c)