解构
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<u-alert type="warning" v-if="connection != 0" description="网络似乎断开了,请检查网络" :show-icon="true" />
|
||||
</view>
|
||||
<!-- content -->
|
||||
<view v-if="$store.state.token !== ''">
|
||||
<view v-if="$store.state.token !== ''">
|
||||
<connection-status :connection="connection" />
|
||||
<conversation-list @refresh="getConversationList()" :conversations="conversations" />
|
||||
</view>
|
||||
<!-- 未登录 -->
|
||||
@@ -38,7 +38,8 @@
|
||||
import * as RongIMLib from '@/uni_modules/RongCloud-IMWrapper/js_sdk/index'
|
||||
import im from '@/utils/im/index.js'
|
||||
import userAuth from '@/public/userAuth'
|
||||
import conversationList from './components/conversationList'
|
||||
import conversationList from './components/conversationList'
|
||||
import connectionStatus from './components/connectionStatus'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -49,7 +50,8 @@
|
||||
}
|
||||
},
|
||||
components: {
|
||||
conversationList
|
||||
conversationList,
|
||||
connectionStatus
|
||||
},
|
||||
onLoad() {
|
||||
// 好友申请数量
|
||||
@@ -96,7 +98,7 @@
|
||||
RongIMLib.getConversationList([1, 3], count, timestamp, ({
|
||||
code,
|
||||
conversations
|
||||
}) => {
|
||||
}) => {
|
||||
if (code === 0) {
|
||||
this.conversations = conversations
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user