Skip to content

Commit

Permalink
chore(live-demo): 删除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer17x committed Jul 12, 2022
1 parent 492c31e commit 4622bbd
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions packages/live-demo/src/pages/room/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const Room = () => {
cover: detail?.cover_url || '',
});
setPlayerUrl(detail?.rtmp_url || '');
setAnchorInfo(detail.anchor_info);
});
}, {
pollingInterval: 3000,
Expand All @@ -70,7 +69,6 @@ export const Room = () => {
const [noticeVisible, setNoticeVisible] = useState(false);
const [playerUrl, setPlayerUrl] = useState<string>();
const [playLoading, setPlayLoading] = useState(false);
const [anchorInfo, setAnchorInfo] = useState<AnchorInfo>();

/**
* 播放器
Expand Down Expand Up @@ -132,31 +130,7 @@ export const Room = () => {
*/
const { state: imStoreState, dispatch: dispatchIMStoreState } = useIMStore();
const [imManager, setIMManager] = useState<QNIMManager | null>(null);
const [messages, setMessages] = useState<Message[]>([
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '你好' },
{ nickname: 'wyf', content: '最后一句' },
]);
const [messages, setMessages] = useState<Message[]>([]);

/**
* 初始化im
Expand Down

0 comments on commit 4622bbd

Please sign in to comment.