import $state from '@/uni_modules/uni-im/sdk/state/index.js';
export default {
toChat(param) { if ($state.isWidescreen) { uni.$emit('uni-im-toChat', param) } else { let url = '/uni_modules/uni-im/pages/chat/chat?user_id=' + user_id if (param.source) { url += '&source=' + decodeURIComponent(JSON.stringify(param.source)) } uni.navigateTo({url,animationDuration: 300}) } },
}