File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,8 @@ async function compile(file, opt) {
295
295
} ) ;
296
296
}
297
297
let routes = [ ] ;
298
- pages . concat ( subPages ) . forEach ( page => {
298
+ const allPages = pages . concat ( subPages ) ;
299
+ allPages . forEach ( page => {
299
300
const name = `_${ md5 ( page ) . substr ( 0 , 8 ) } ` ;
300
301
// const name = page.replace(/\//g, '$');
301
302
content += `import ${ name } from './${ page } .vue';\n` ;
@@ -311,7 +312,7 @@ async function compile(file, opt) {
311
312
312
313
let pageTitleMap = { } ;
313
314
Object . keys ( pagesInfo ) . forEach ( key => {
314
- if ( key !== 'app' && pages . indexOf ( key ) > - 1 ) {
315
+ if ( key !== 'app' && allPages . indexOf ( key ) > - 1 ) {
315
316
pageTitleMap [ `/${ key } ` ] = Object . assign ( { } , appWin , pagesInfo [ key ] ) ;
316
317
pageTitleMap [ `/${ key } ` ] . title = pageTitleMap [ `/${ key } ` ] . navigationBarTitleText ;
317
318
}
You can’t perform that action at this time.
0 commit comments