From 07ca7dc8a722dca016611572ecf1c22ecb2040b1 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 8 Jun 2022 16:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=8B=E7=82=B9=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/router/autoRoutes.js | 1 + 1 file changed, 1 insertion(+) 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 }))