From 0770065a4324d84b98ed46ec480384224c759577 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 8 Mar 2023 09:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A6=E5=8F=91=E7=82=B9=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B9=8B=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/router/autoRoutes.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js index ba1a7d65..658355f4 100644 --- a/examples/router/autoRoutes.js +++ b/examples/router/autoRoutes.js @@ -2,7 +2,6 @@ import store from "../store"; import {waiting} from "../utils"; import appEntry from "../views/appEntry"; import router from "./router"; -import axios from "./axios"; export default { routes: () => store.state.apps, @@ -36,14 +35,6 @@ export default { Promise.all([ 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) - waiting.close() - }) + ]).finally(() => waiting.close()) } }