no message
This commit is contained in:
@@ -1498,22 +1498,21 @@ const selectEomjiPop = key => {
|
||||
let emojiList = ripostelist.value
|
||||
// 判断 是否已经 有了
|
||||
const index = emojiList.findIndex(item => item.item == key)
|
||||
if (index === -1) {
|
||||
if (riposteHttpState) return
|
||||
riposteHttpState = true
|
||||
riposteSubmitHttp({ token, item: key })
|
||||
.then(res => {
|
||||
if (res.code != 200) {
|
||||
ElMessage.error(res.message)
|
||||
return
|
||||
}
|
||||
let data = res.data
|
||||
handleEmojiData(data)
|
||||
})
|
||||
.finally(() => {
|
||||
riposteHttpState = false
|
||||
})
|
||||
}
|
||||
if (index != -1 && emojiList[index].selected) return
|
||||
if (riposteHttpState) return
|
||||
riposteHttpState = true
|
||||
riposteSubmitHttp({ token, item: key })
|
||||
.then(res => {
|
||||
if (res.code != 200) {
|
||||
ElMessage.error(res.message)
|
||||
return
|
||||
}
|
||||
let data = res.data
|
||||
handleEmojiData(data)
|
||||
})
|
||||
.finally(() => {
|
||||
riposteHttpState = false
|
||||
})
|
||||
}
|
||||
|
||||
provide("selectEomjiPop", selectEomjiPop)
|
||||
|
||||
Reference in New Issue
Block a user