Commit 357936d5 authored by Gakki's avatar Gakki

未上线

parent 840d3aa9
...@@ -80,19 +80,19 @@ async function GetRoutes(router) { ...@@ -80,19 +80,19 @@ async function GetRoutes(router) {
} }
} }
for(let key in documents) { // for(let key in documents) {
for (let i = 0; i < documents[key].length; i++) { // for (let i = 0; i < documents[key].length; i++) {
let firstRouter = Object.assign({}, documents[key][i]) // let firstRouter = Object.assign({}, documents[key][i])
if ( // if (
!!firstRouter.meta.openMode && // !!firstRouter.meta.openMode &&
firstRouter.meta.openMode == 'outsite' // firstRouter.meta.openMode == 'outsite'
) { // ) {
firstRouter.component = TipsOutsite // firstRouter.component = TipsOutsite
} // }
parent.children.push(Object.assign({}, firstRouter)) // parent.children.push(Object.assign({}, firstRouter))
router.addRoutes([ parent ]) // router.addRoutes([ parent ])
} // }
} // }
} }
export default GetRoutes export default GetRoutes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment