diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js index 62d78d0e..8290db40 100644 --- a/examples/router/autoRoutes.js +++ b/examples/router/autoRoutes.js @@ -32,6 +32,7 @@ export default { } else return 0 }))).then(() => { axios.post("/node/wechatapps/addOrUpdate", { + type: "web", list: this.routes().map(({path: libPath, label, module: {name}, name: id}) => ({ id, type: 'web', libPath, label, name }))