no message

This commit is contained in:
A1300399510
2024-07-25 14:13:42 +08:00
parent 7b75a56193
commit 5030abc6a5
28 changed files with 293 additions and 294 deletions

View File

@@ -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)