Commit b9f44e9f b9f44e9f92e4092a3dc9bfedf3dacbbbacad5e32 by yangjun@hikoon.cn

1

1 parent 4701e452
......@@ -23,7 +23,6 @@ export default {
handleFriendClick() {
this.tim.getConversationProfile(`C2C${this.friend.esm_id}`)
.then(({data}) => {
console.log(data)
this.$store.commit('updateCurrentConversation', data)
this.$store.commit('setActiveMenu', 'conversation-list')
this.$store.dispatch('checkoutConversation', data.conversation.conversationID)
......
......@@ -94,18 +94,10 @@ export default {
return '[自定义消息]'
}
},
formatImageMessage() {
console.log(this.message)
return {
// ID:
}
},
onImageLoaded(event) {
console.log(event)
this.$bus.$emit('image-loaded', event)
},
handlePreview() {
console.log(this.payload.description)
this.$bus.$emit('image-preview', {
url: this.payload.description
})
......
......@@ -82,7 +82,6 @@ export default {
// this.$store.commit('showMessage', {type: 'success', message: '登录成功'})
})
.catch(error => {
console.log(1111)
this.loading = false
this.$store.commit('showMessage', {message: '登录失败:' + error.message, type: 'error'})
}))
......
......@@ -3,14 +3,14 @@ import COSSDK from 'cos-js-sdk-v5'
// 初始化 SDK 实例
const tim = TIM.create({
SDKAppID: window.genTestUserSig('').SDKAppID
SDKAppID: 1400514950
})
window.setLogLevel = tim.setLogLevel
// 无日志级别
tim.setLogLevel(4)
tim.setLogLevel(1)
// 注册 cos
tim.registerPlugin({'cos-js-sdk':COSSDK})
tim.registerPlugin({'cos-js-sdk': COSSDK})
export default tim
......
......@@ -7,6 +7,6 @@ let options = {
const trtcCalling = new TRTCCalling(options)
// 4 无日志级别
trtcCalling.setLogLevel(4)
// trtcCalling.setLogLevel(1)
export default trtcCalling
......
......@@ -5,7 +5,7 @@ import tim from '../tim'
const service = axios.create({
baseURL: 'http://api.spread.work/mapi',
baseURL: 'http://spread_dev.hikoon.com/mapi',
// withCredentials: true, // send cookies when cross-domain requests
timeout: 5000 // request timeout
})
......
......@@ -196,8 +196,6 @@ class RtcClient {
const remoteStream = evt.stream;
const id = remoteStream.getId();
const userId = remoteStream.getUserId();
console.log(`remote stream added: [${userId}] ID: ${id} type: ${remoteStream.getType()}`);
console.log('subscribe to this remote stream');
// 远端流默认已订阅所有音视频,此处可指定只订阅音频或者音视频,不能仅订阅视频。
// 如果不想观看该路远端流,可调用 this.client_.unsubscribe(remoteStream) 取消订阅
this.client_.subscribe(remoteStream);
......