fix: 修复表情报错

This commit is contained in:
wanglihui 2023-11-26 21:36:27 +08:00
parent 7e43173022
commit eeaa7a179a

View File

@ -110,11 +110,13 @@ export class EmojiPanel extends Component<EmojiPanelProps, EmojiPanelState> {
this.setState({ this.setState({
emojis: this.emojiService.getAllEmoji() emojis: this.emojiService.getAllEmoji()
}) })
this.requestStickerCategory() // 获取表情
// this.requestStickerCategory()
} }
requestStickerCategory() { requestStickerCategory() {
if (!stickerCategories || stickerCategories.length === 0) { if (!stickerCategories || stickerCategories.length === 0) {
console.log('====',stickerCategories)
WKApp.dataSource.commonDataSource.userStickerCategory().then((result) => { WKApp.dataSource.commonDataSource.userStickerCategory().then((result) => {
stickerCategories = result stickerCategories = result
this.setState({}) this.setState({})