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

File diff suppressed because one or more lines are too long

1
dist/css/875.02a76cc4.css vendored Normal file

File diff suppressed because one or more lines are too long

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/84.1779a56b.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/875.80111e79.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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