触发点改为提交之后

This commit is contained in:
aixianling
2023-03-08 09:48:35 +08:00
parent 0b040a2192
commit 0770065a43

View File

@@ -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())
}
}