工作汇报

This commit is contained in:
yanran200730
2022-03-29 16:30:25 +08:00
parent 840650d55e
commit 47d9213b70
11 changed files with 210 additions and 16 deletions

View File

@@ -32,19 +32,20 @@ const app = new Vue({
store,
...App
});
store.dispatch("agentSign").then(config => {
const init = (c = 0) => {
if (config) {
store.commit("getConfig", {...config, latlng: [config.lat, config.lng]})
app.$mount();
} else {
if (c < 5) {
setTimeout(() => {
init(++c)
}, 300)
}
}
}
init()
})
app.$mount();
// store.dispatch("agentSign").then(config => {
// const init = (c = 0) => {
// if (config) {
// store.commit("getConfig", {...config, latlng: [config.lat, config.lng]})
// app.$mount();
// } else {
// if (c < 5) {
// setTimeout(() => {
// init(++c)
// }, 300)
// }
// }
// }
// init()
// })