Skip to content

Commit f8ad687

Browse files
committed
chore: types
1 parent c4cc2be commit f8ad687

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ export const getAllPages = (key = 'needLogin') => {
6060
})),
6161
]
6262
// 这里处理分包
63-
const subPages = []
63+
const subPages: any[] = []
6464
pagesJson.subPackages.forEach((subPageObj) => {
6565
// console.log(subPageObj)
6666
const { root } = subPageObj
6767

6868
subPageObj.pages
6969
.filter((page) => !key || page[key])
70-
.forEach((page) => {
70+
.forEach((page: { path: string } & Record<string, any>) => {
7171
subPages.push({
7272
...page,
7373
path: `/${root}/${page.path}`,

0 commit comments

Comments
 (0)