工作汇报
This commit is contained in:
31
src/main.js
31
src/main.js
@@ -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()
|
||||
// })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user