no message
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user