diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js
index 21e52671..62d78d0e 100644
--- a/examples/router/autoRoutes.js
+++ b/examples/router/autoRoutes.js
@@ -2,6 +2,7 @@ import store from "../store";
import {waiting} from "../utils";
import appEntry from "../views/apps/appEntry";
import router from "./router";
+import axios from "./axios";
export default {
routes: () => store.state.apps,
@@ -29,6 +30,13 @@ export default {
//命名规范入口文件必须以App开头
return store.commit("addApp", addApp)
} else return 0
- }))).then(() => waiting.close())
+ }))).then(() => {
+ axios.post("/node/wechatapps/addOrUpdate", {
+ list: this.routes().map(({path: libPath, label, module: {name}, name: id}) => ({
+ id, type: 'web', libPath, label, name
+ }))
+ }, {baseURL: "/ns"}).catch(() => 0)
+ waiting.close()
+ })
}
}
diff --git a/project/oms/apps/AppWebApps/AppWebApps.vue b/project/oms/apps/AppWebApps/AppWebApps.vue
new file mode 100644
index 00000000..21dce3ed
--- /dev/null
+++ b/project/oms/apps/AppWebApps/AppWebApps.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+