企业微信视频回放

This commit is contained in:
yanran200730
2022-04-20 18:11:05 +08:00
parent b2422208c0
commit 610d401589
5 changed files with 641 additions and 51 deletions

View File

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