no message

This commit is contained in:
A1300399510
2024-08-26 17:16:43 +08:00
parent 11056a74a4
commit 399922bb77
9 changed files with 19 additions and 11 deletions

View File

@@ -560,6 +560,7 @@ export default {
adminOperateState: false, // 管理员面板 显示状态
deletePostToken: "",
managementauthority: 0, // 是否是管理员
adminOperateListIndex: null, // 管理员面板 列表下标
}
},
@@ -1202,6 +1203,7 @@ export default {
// 打开管理员 面板
openAdminOperate(index) {
this.deletePostToken = ""
this.adminOperateListIndex = null
if (index == null) {
this.adminOperateState = true
@@ -1210,6 +1212,7 @@ export default {
}
this.postList.list[index]["adminOperateState"] = true
this.deletePostToken = this.postList.list[index].token
this.adminOperateListIndex = index
this.$forceUpdate()
// this.postList = this.token
@@ -1229,15 +1232,20 @@ export default {
popUupDialog(hackinguser) {
this.closeAdminOperate()
const userConfirmed = confirm(`确定要${hackinguser ? "删除且禁言" : "删除"}?`)
if (userConfirmed) {
this.deletePost(hackinguser)
}
if (userConfirmed) this.deletePost(hackinguser)
},
// 删帖
deletePost(hackinguser) {
console.log(this.adminOperateListIndex, "this.adminOperateListIndex")
// return
this.$http.post("/api/manage/delete", { token: this.deletePostToken, hackinguser }).then(res => {
if (res.code != 200) return
console.log(this.adminOperateListIndex)
if (this.adminOperateListIndex != null) {
location.reload()
return
}
if (document.referrer) window.history.back()
else window.location.href = "/"
@@ -1427,8 +1435,8 @@ export default {
height: 0.8rem;
align-items: center;
.item {
width: 0.1333rem;
height: 0.1333rem;
width: 0.0667rem;
height: 0.0667rem;
border-radius: 50%;
background: #8a8a8a;
border: 0.0133rem #7f7f7f solid;
@@ -1441,7 +1449,7 @@ export default {
.operate-mask {
width: 100vw;
height: 100vh;
background: rgba(138, 138, 138, 0.6);
// background: rgba(138, 138, 138, 0.6);
position: fixed;
top: 0;
left: 0;