From ccc6455274fce8c2bceb9a5fa347d7da8a1f21f3 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 24 Aug 2022 11:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E7=89=88=E6=94=B6=E5=BD=95we?= =?UTF-8?q?b=E7=AB=AF=E4=BA=A7=E5=93=81=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/router/autoRoutes.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js index a265a267..5a2775df 100644 --- a/examples/router/autoRoutes.js +++ b/examples/router/autoRoutes.js @@ -36,12 +36,12 @@ export default { promise(apps, "packages"), promise(projects, "project") ]).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 - // })) - // }, {baseURL: "/ns"}).catch(() => 0) + axios.post("/node/wechatapps/addOrUpdate", { + type: "web", + list: this.routes().map(({path: libPath, label, module: {name}, name: id}) => ({ + id, type: 'web', libPath, label, name + })) + }, {baseURL: "/ns"}).catch(() => 0) waiting.close() }) }