We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4cc2be commit f8ad687Copy full SHA for f8ad687
src/utils/index.ts
@@ -60,14 +60,14 @@ export const getAllPages = (key = 'needLogin') => {
60
})),
61
]
62
// 这里处理分包
63
- const subPages = []
+ const subPages: any[] = []
64
pagesJson.subPackages.forEach((subPageObj) => {
65
// console.log(subPageObj)
66
const { root } = subPageObj
67
68
subPageObj.pages
69
.filter((page) => !key || page[key])
70
- .forEach((page) => {
+ .forEach((page: { path: string } & Record<string, any>) => {
71
subPages.push({
72
...page,
73
path: `/${root}/${page.path}`,
0 commit comments