no message

This commit is contained in:
A1300399510
2024-01-25 19:29:12 +08:00
parent 89020a40b7
commit bd7c792cbe
970 changed files with 119575 additions and 101 deletions

View File

@@ -121,6 +121,7 @@ const getPublish = () => {
if (res.code != 200) return
let data = res.data
publishList = publishList.concat(data.data)
if (publishList.length < data["count"]) publisPage++
else publisPage = 0
showList.value = publishList
@@ -189,6 +190,8 @@ const closeAllAnonymousState = () => {
})
showList.value = [...publishList]
}
const refreshDataOnly = inject("refreshDataOnly")
// 修改匿名状态
const handleAnonymousState = (token, index, anonymous) => {
changeAnonymousHttp({ token, anonymous }).then(res => {
@@ -200,7 +203,10 @@ const handleAnonymousState = (token, index, anonymous) => {
publishList[index]["anonymous"] = anonymous
showList.value = [...publishList]
closeAllAnonymousState()
const uniqid = publishList[index]["uniqid"]
if (route.name == "details-id" && route.params.id == uniqid) {
refreshDataOnly()
}
ElMessage.success(res.message)
})
}
@@ -471,6 +477,7 @@ const deleteVote = () => {
-webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.203921568627451);
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.203921568627451);
flex-direction: column;
z-index: 1;
.state-popup-item {
justify-content: space-between;