企业微信视频回放
This commit is contained in:
34
src/main.js
34
src/main.js
@@ -5,6 +5,7 @@ import axios from './common/axios';
|
||||
import utils from './common/util';
|
||||
import ui from 'uview-ui'
|
||||
import VConsole from 'vconsole'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const loading = title => {
|
||||
uni.showLoading({
|
||||
@@ -23,6 +24,7 @@ Vue.use(ui)
|
||||
Vue.config.productionTip = false;
|
||||
//初始化接口工具类
|
||||
Vue.prototype.$http = axios;
|
||||
Vue.prototype.$dayjs = dayjs
|
||||
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
|
||||
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
|
||||
utils.dict.init({instance: axios})
|
||||
@@ -32,20 +34,20 @@ const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
});
|
||||
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()
|
||||
// })
|
||||
// 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