加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.js 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
Zion.lin 提交于 2021-11-10 11:14 . init
import 'datejs'
import Vue from 'vue'
import App from './App'
import store from './store'
// Components
import ChatContactItem from './components/ChatContactItem'
import ChatMessageItem from './components/ChatMessageItem'
import ChatLayout from './components/ChatLayout'
import ChatInputBox from './components/ChatInputBox'
Vue.component('ChatContactItem', ChatContactItem)
Vue.component('ChatMessageItem', ChatMessageItem)
Vue.component('ChatLayout', ChatLayout)
Vue.component('ChatInputBox', ChatInputBox)
// Utils
import utils from './utils/utils'
import imUtils from './utils/im'
import txim from './utils/txim'
// import txcalling from './utils/txcalling'
// import tpns from './utils/tpns'
txim.initSDK(txim.sdkAppId)
Vue.prototype.$utils = utils
Vue.prototype.$imUtils = imUtils
Vue.prototype.$txim = txim
// Vue.prototype.$txcalling = txcalling
// Vue.prototype.$tpns = tpns
// tpns.start()
// console.log(tpns.getToken())
Vue.prototype._ = _
Vue.prototype.$next = function () {
return new Promise(next => this.$nextTick(next))
}
Vue.prototype.$delay = function (ms) {
return new Promise(next => setTimeout(next, ms))
}
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App,
store
})
app.$mount()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化