|
@@ -53,6 +53,8 @@ export default defineComponent({
|
|
|
async initializeRoom () {
|
|
|
if (!state.user) throw Error('请先登录')
|
|
|
try {
|
|
|
+ runtime.likeCount = state.user?.likeNum || 0
|
|
|
+ runtime.lookCount = state.user?.lookNum || 0
|
|
|
const isLiveing = sessionStorage.getItem(RuntimeUtils.START_LIVE_STATUS) === 'liveing'
|
|
|
// IM连接
|
|
|
await RuntimeUtils.connectIM(state.user?.imToken)
|